NPTEL Programming, Data Structures And Algorithms Using Python Week 2 Quiz Assignment | NPTEL Swayam Assignment Answers
MCQs (multiple choice questions) Nptel Week 2 Quiz Answers:
Q.1: One of the following 10 statements generates an error. Which one? (Your answer should be a number between 1 and 10.) Code are:
Answer is 7
Q.2: Consider the following lines of Python code. Code are:
Options are:
(a) a[0] == 47, b[3] == 73, c[3] == 73, d[1] == 47
(b) a[0] == 65, b[3] == 105, c[3] == 73, d[1] == 95
(c) a[0] == 65, b[3] == 73, c[3] == 73, d[1] == 95
(d) a[0] == 95, b[3] == 73, c[3] == 73, d[1] == 95
Answer is (c)
Q.3: What is the value of endmsg after executing the following lines? Code are:
Q.4: What is the value of mylist after the following lines are executed?
0 Comments