NPTEL Programming Data Structures And Algorithms Using Python | NPTEL Week 2 Quiz Assignment | NPTEL Assignment Solutions

NPTEL Programming, Data Structures And Algorithms Using Python Week 2 Quiz Assignment | NPTEL Swayam Assignment Answers

nptel programming data structures and algorithms using python




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:

one of the following 10 statements generates an error

Answer is 7



Q.2: Consider the following lines of Python code. Code are:

consider the following lines of Python code

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:

what is the value of endmsg after executing the following lines


Answer is "adnocana"



Q.4: What is the value of mylist after the following lines are executed?

what is the value of mylist after the following lines are executed


Answer is [7, 11, 13, 17, 19, 21]



If you are facing any queries regarding this assignment solutions, then please drop comment in comment section.







Post a Comment

0 Comments