NPTEL Python for Data Science Assignment 2 Answer

We Discuss About That NPTEL Python for Data Science Assignment 2 Answer

NPTEL Python for Data Science Assignment 2 Answer – Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate as a Reference Purpose, It is Mandetory to Submit Your Weekly Assignment By Your Own Understand Level.

Are you looking for the Assignment Answers to NPTEL Python for Data Science Assignment 2 Answer? If Yes You are in Our Great Place to Getting Your Solution, This Post Should be help you with the Assignment answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “NPTEL Python for Data Science Assignment 2 Answer”

NPTEL Python for Data Science Assignment

The course aims at equipping participants to be able to use python programming for solving data science problems.
INTENDED AUDIENCE : Final Year Undergraduates
PRE-REQUISITES : Knowledge of basic data science algorithms

INTENDED AUDIENCE B.E./Msc (Computer Science)

PRE-REQUISITES Good knowledge of C, Computer Organization and Architecture, x86 Assembly level programming.

Next Week Assignment Answers


This course can have Associate in Nursing unproctored programming communication conjointly excluding the Proctored communication, please check announcement section for date and time. The programming communication can have a weightage of twenty fifth towards the ultimate score.

Final score = Assignment score + Unproctored programming exam score + Proctored Exam score
  • Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course.
  • ( All assignments in a particular week will be counted towards final scoring – quizzes and programming assignments). 
  • Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam – out of 100
  • Proctored Exam score =50% of the proctored certification exam score out of 100
If any one of the 3 criteria is not met, you will not be eligible for the certificate even if the Final score >= 40/100. 


BELOW YOU CAN GET YOUR NPTEL Python for Data Science Assignment 2 Answer 2022? :

Q1. Which of the following function(s) can be used to resize a NumPy array in Python from the given options.

a. array.shape(reshape)
b. array.reshape(shape)
c. numpy.reshape(array, shape)
d. numpy.reshape(shape, array)

Answers:- b,c

Q2. Create the tuples given below:

tuple_1 = (1,5,6,7,8)
tuple_2 = (8,9,4)

Identify which of the following options does not work on the given tuples

a. sum(tuple_1)
b. len(tuple_2)
c. tuple_2 + tuple_1
d. tuple_2 + tuple_1

Answers:- d

Q3. Create a sequence of numbers from 15 to 25 and increment by 4. What is the index of the element 19?

a. 3
b. 2
c. 0
d. 1

Answers:- d

Q4. Consider a variable job = “chemist”. Which of the following expression(s) will retrieve the last character from the string?

a. job[7] b. job[len(job) – 1] c. job[5:6] d. job[- 1]

Answers:- b,d

Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW

Q5. Given a list, ls = [1, 2, 3, 3, 2, 3, 1, 4, 5, 6, 5, 6, 3, 2, 1, 1, 1, 7, 8, 9, 7, 8, 9, 7, 8, 9, 7, 8, 9, 10, 10, 1, 2, 3, 9, 10], which of the following would be the most efficient method in determining the unique elements present in ls?

a. By converting ls into a NumPy array, and applying relevant methods
b. By converting ls into a set
C. By iterating through ls, and doing appropriate manipulations
d. None of the above

Answers:- b

Q6. Which of the following data structure(s) can be used as a key while creating a dictionary?

a. list
b. str
C. set
d. none

Answers:- b

Q7. Given a dictionary, states = {‘Tamil Nadu’: ‘TN’, ‘Karnataka’: ‘KA’, ‘Kerala’: ‘KL’, ‘Maharashtra’: ‘MH’}, which of the following command(s) is used to remove the key-value pair ‘Karnataka’: ‘KA‘ from it?

a. del states[‘Karnataka’] b. states.popitem(‘Karnataka’)
c. states.pop(‘Karnataka’)
d. del states[‘Karnataka’:’KA’]

Answers:- a,c

Q8. Which of the following is valid to declare a string literal Shin’ichi to a variable?

a. “Shin’ichi”
b. ‘Shin”ichi’
C. ‘Shin’ichi’
d. None of the above

Answers:- a

Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW

Q9. Which of the following commands can be used to create a NumPy array?

a. np.array()
b. np.zeros()
C. np.empty()
d. all of the above

Answers:- d

Q10. Given a NumPy array, arr = np.array([[5,9,10], [7,2,6], [12,8,0]]), find the correct command from the following options to get an output array as [24 15 20]?

a. np.sum(arr)
b. np.sum(arr, axis = 0)
C. np.sum(arr, axis = 1)
d. None of the above

Answers:- c

Yhaa You have done it but next? if YOU Want to your Others NPTEL Python for Data Science Assignment 2 Answer Then Follow US HERE and Join Telegram.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *