Hello learners In this article we are going to discuss NPTEL Python for Data Science Assignment 2 Answers. All the Answers provided below to help the students as a reference, You must submit your assignment with your own knowledge and use this article as reference only.
About the course:-
The course aims at equipping participants to be able to use python programming for solving data science problems.
NPTEL Python for Data Science Assignment 2 Answers 2024:
1. Which of the following oject does not support indexing?
Answer :- d
2. Given a NumPy array, arr = np.array([[[1, 2, 3], [4, 5, 6], [7, 8, 9]]]), what is the output of the command, print(arr[0][1])?
Answer :- c
3. What is the output of the following code?
Answer :- c
4. What is the output of the following code?
Answer :- c
5. Which of the following code gives output My friend’s house is in Chennai?
Answer :- a,d
6. Let t1 = (1, 2, “tuple”, 4) and t2 = (5, 6, 7). Which of the following will not give any error after the execution?
Answer :- b,c,d
7. Let d = {1 : “Pyhton”, 2 : [1, 2, 3]}. Which among the following will not give the error after the execution?
Answer :- a,c
8. Which of the following data type is immutable?
Answer :- c
9. student = {‘name’: ‘Jane’, ‘age’: 25, ‘courses’: [‘Math’, ‘Statistics’]}
Which among the following will return
{‘name’: ‘Jane’, ‘age’: 26, ‘courses’: [‘Math’, ‘Statistics’], ‘phone’: ‘123-456’}
Answer :- b,c
10. What is the output of the following code?
Answer:- a