31. What does random.shuffle(x) do when x = [1, 2, 3]?
32. Which of these definitions correctly describes a module?
33. What will be the output shape of the following Python code?
import turtle
t=turtle.Pen()
for i in range(0,4):
t.forward(100)
t.left(120)
import turtle
t=turtle.Pen()
for i in range(0,4):
t.forward(100)
t.left(120)34. Which of the following functions can be used to find the protocol version of the pickle module currently being used?
35. What will be the output of the following Python functions?
import turtle
t=turtle.Pen()
for i in range(0,3):
t.forward(100)
t.left(120)
t.back(100)
for i in range(0,3):
t.forward(100)
t.left(120)
import turtle
t=turtle.Pen()
for i in range(0,3):
t.forward(100)
t.left(120)
t.back(100)
for i in range(0,3):
t.forward(100)
t.left(120)36. What will be the output of the following Python code?
import turtle
t=turtle.Pen()
t.clear()
t.isvisible()
import turtle
t=turtle.Pen()
t.clear()
t.isvisible()37. The output of the following Python code is similar to the alphabet . . . . . . . .
import turtle
t=turtle.Pen()
t1=turtle.Pen()
t2=turtle.Pen()
t.forward(100)
t1.forward(100)
t2.forward(100)
t1.left(90)
t1.forward(75)
t2.right(90)
t2.forward(75)
import turtle
t=turtle.Pen()
t1=turtle.Pen()
t2=turtle.Pen()
t.forward(100)
t1.forward(100)
t2.forward(100)
t1.left(90)
t1.forward(75)
t2.right(90)
t2.forward(75)38. What will be the output of the following Python code?
import sys
sys.argv
import sys
sys.argv39. What is the value of x if x = math.ldexp(0.5, 1)?
40. What will be the output of the following Python code?
import turtle
t=turtle.Pen()
t.position()
(100.00,0.00)
t.goto(100,100)
t.distance(100,0)
import turtle
t=turtle.Pen()
t.position()
(100.00,0.00)
t.goto(100,100)
t.distance(100,0)Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.
