Académique Documents
Professionnel Documents
Culture Documents
reviewer1@nptel.iitm.ac.in ▼
Course
outline Week 2 Quiz
The due date for submitting this assignment has passed. Due on 2017-02-06, 23:59 IST.
How to access
the portal Submitted assignment
Week 1:
Introduction
1) One of the following 10 statements generates an error. Which one? (Your answer should be a
number between 1 and 10.)
Week 1 Quiz
x = [1,"abcd",2,"efgh",[3,4]] # Statement 1
Week 2: Basics
of Python y = x[0:50] # Statement 2
z = y # Statement 3
Week 2 Quiz w = x # Statement 4
x[1] = x[1] + 'd' # Statement 5
Quiz : Week 2
x[1][1] = 'y' # Statement 6
Quiz
y[2] = 4 # Statement 7
Quiz : Week 2 z[0] = 0 # Statement 8
Quiz Answers
w[4][0] = 1000 # Statement 9
Week 2 a = (x[4][1] == 4) # Statement 10
Programming
Assignment
Week 3: Lists,
inductive No, the answer is incorrect.
function Score: 0
definitions, Accepted Answers:
sorting
(Type: Numeric) 6
handling, string
https://onlinecourses.nptel.ac.in/noc17_cs10/unit?unit=25&assessment=26 1/3
09/01/2018 Programming, Data Structures and Algorithms using Python - - Unit 5 - Week 2 Quiz
handling, string x[1] == 40, y[1] == 40, w[0] == 4, u[0] == 50
processing
No, the answer is incorrect.
Week 5 Score: 0
Programming
Assignment Accepted Answers:
x[1] == 40, y[1] == 40, w[0] == 4, u[0] == 50
Week 6:
3) What is the value of endmsg after executing the following lines?
Backtracking,
scope, data
structures; startmsg = "hello"
stacks, queues endmsg = ""
and heaps
for i in range(0,len(startmsg)):
endmsg = startmsg[i] + endmsg
Week 6 Quiz
Week 7: Classes,
objects and user
defined
datatypes
No, the answer is incorrect.
Score: 0
Week 7 Quiz
Accepted Answers:
Week 8: Dynamic (Type: Regex Match) ^\s*olleh\s*$
programming, (Type: Regex Match) ^\s*\"olleh\"\s*$
wrap-up (Type: Regex Match) ^\s*\'olleh\'\s*$
def mystery(l):
l = l + l
return()
mylist = [31,24,75]
mystery(mylist)
2.5 points
Next Page
https://onlinecourses.nptel.ac.in/noc17_cs10/unit?unit=25&assessment=26 2/3
09/01/2018 Programming, Data Structures and Algorithms using Python - - Unit 5 - Week 2 Quiz
Funded by
Powered by
https://onlinecourses.nptel.ac.in/noc17_cs10/unit?unit=25&assessment=26 3/3