NPTEL Python for Data Science Assignment 2 Answers 2022

NPTEL Python for Data Science Assignment 2

Are you looking for the Answers to NPTEL Python for Data Science Assignment 2? This article will help you with the answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “NPTEL Python for Data Science Assignment 2”. So read the complete article carefully.

What is Python for Data Science?

Python for Data Science is a fun-filled course where Domain Certification helps learners to gain expertise in a specific Area/Domain. This can be helpful for learners who wish to work in a particular area as part of their job or research or for those appearing for some competitive exam or becoming job ready or specialising in an area of study.  

Every domain will comprise Core courses and Elective courses. Once a learner completes the requisite courses per the mentioned criteria, you will receive a Domain Certificate showcasing your scores and the domain of expertise.

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

Below you can find the answers for NPTEL Python for Data Science Assignment 2

Assignment No.Answers
Python for Data Science Assignment 1 Click Here
Python for Data Science Assignment 2 Click Here
Python for Data Science Assignment 3 Click Here
Python for Data Science Assignment 4 Click Here

NPTEL Python for Data Science Assignment 2 Answers:-

Q1. Consider a variable job = “chemist”. Which of the following expressions will retrieve the last character from the variable value?

a) job[7]
b) job[len(job) – 1]
c) job[5:6]
d) job[- 1]
e) All of the above statements are true

Answer:- b,d

Q2. Which of the following expressions should be used to assign the variable get_num to get the final print statement output as value 75 from the below tuple?

a) nst_tup[1][2]
b) nst_tup[1:2][1]
c) nst_tup[1][1]
d) nst_tup1:2
e) None of the above

Answer:- c

Q3. What would be the output for the following set of statements?

a) [13, 23, 18, 64, 51, “True”]
b) [13, 23, 18, 64, True]
c) [13, 23, 18, 64, 51, True]
d) Index Error

Answer:- b

Zensar off campus Drive 2022 | Freshers | Any Graduate | Across India

Q4. What result does the final statement print?

a) Output is: 12, (25, 32, 39), 44
b) Output is: 12 and (25, 32, 39) and 44
c) Output is: 12 and 25 and 39
d) ValueError: Too many values to unpack
e) Output is: 12 and [25, 32, 39] and 44

Answer:- e

???? Next Week Answers: Assignment 03 ????

quizxp telegram

Q5. When the following set of instructions are executed, how many times does the vowel “e” appear in the result?

a) 1
b) “e” is not printed
c) 2
d) 4
e) None of the above

Answer:- c

Q6. Which of the following options, when executed, will result in a tuple?

a) t = (2,2)
b) y =[‘h’,’4′,’3′]
c) r = (‘v’,)
d) s = (‘w’)
e) All except b

Answer:- a,c

We are going to post answers for all weeks you can join us on telegram for regular updates and if there are any changes in answers then will update on our telegram channel only.

quizxp telegram

Q7. Which statement/ statements will result in an empty data structure?

a) dict1 = {}
b) tup1 = ()
c) st1 = set()
d) toy = “baseball”
gt_str = toy[2:2]
print(“Output:”, gt_str)
e) All of the above

Answer:- e

Vmware off campus Drive 2022 | Freshers | Software Engineer | Bangalore

Q8. Consider a dictionary city created with the following keys and values.

Through which all possible way / ways can we access the value 5 from the dictionary city?

a) city[‘Bengaluru’]
b) city.get[‘Bengaluru’]
c) city.values()[1]
d) list(city.values())[1]
e) None of the above

Answer:- a,d

Q9. Count the number of elements in the below list.

a) 2
b) 1
c) 3
d) 0
e) None of the above

Answer:- b

Q10. A data structure is defined as celebrate = set(‘Nativity Day’). What are the possible outputs if celebrate is printed?

1. {‘v’, ‘N’, ‘t’, ‘i’, ‘y’, ‘a’, ‘D’}
2. {‘v’, ‘N’, ‘t’, ‘I’, ‘y’, ‘a’, ‘D’, ‘ ‘}
3. {‘v’, ‘N’, ‘t’, ‘i’, ‘y’, ‘a’, ‘D’, ‘ ‘}
4. {‘v’, ‘t’, ‘i’, ‘y’, ‘a’, ‘D’, ‘ ‘, ‘N’}

a) 1
b) 1 and 3
c) 1, 2, 3
d) 3 and 4
e) All are correct

Answer:- d

Python for Data Science Assignment 1 Answers 2022

For other courses answers:- Visit

For Internship and job updates:- Visit

Disclaimer:- We do not claim 100% surety of solutions, these solutions are based on our sole expertise, and by using posting these answers we are simply looking to help students as a reference, so we urge do your assignment on your own.