21. Lambda functions cannot be pickled because:
22. Which of the following will not be returned by random.choice("1 ,")?
23. What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?
tday=datetime.date.today()
print(tday.weekday())
tday=datetime.date.today()
print(tday.weekday())
24. What will be the output of the following Python code?
import time
time.asctime()
import time
time.asctime()
25. Which of the following is not an advantage of using modules?
26. What is the purpose of the from ... import * statement in Python?
27. The function used to alter the thickness of the pen to 'x' units:
28. What will be the output of the following Python code?
import turtle()
t=turtle.Pen()
t.goto(50,60)
t1=t.clone()
t1.ycor()
import turtle()
t=turtle.Pen()
t.goto(50,60)
t1=t.clone()
t1.ycor()
29. Which of the following functions raises an error when an unpicklable object is encountered by Pickler?
30. The number of lines drawn in each case, assuming that the turtle module has been imported:
Case 1:
for i in range(0,10):
turtle.forward(100)
turtle.left(90)
Case 2:
for i in range(1,10):
turtle.forward(100)
turtle.left(90)
Case 1:
for i in range(0,10):
turtle.forward(100)
turtle.left(90)
Case 2:
for i in range(1,10):
turtle.forward(100)
turtle.left(90)
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.