91. What will be the output of the following Python code?
import turtle
t=turtle.Pen()
for i in range(0,5):
t.left(144)
t.forward(100)
import turtle
t=turtle.Pen()
for i in range(0,5):
t.left(144)
t.forward(100)
92. To sterilize an object hierarchy, the . . . . . . . . function must be called. To desterilize a data stream, the . . . . . . . . function must be called.
93. What will be the output shape of the following Python code?
import turtle
t=turtle.Pen()
for i in range(0,6):
t.forward(100)
t.left(60)
import turtle
t=turtle.Pen()
for i in range(0,6):
t.forward(100)
t.left(60)
94. What is the purpose of the __doc__ attribute in a Python module?
95. What will be the output of the following Python code?
import turtle
t=turtle.Pen()
t.color(1,1,1)
t.begin_fill()
for i in range(0,3):
t.forward(100)
t.right(120)
t.end_fill()
import turtle
t=turtle.Pen()
t.color(1,1,1)
t.begin_fill()
for i in range(0,3):
t.forward(100)
t.right(120)
t.end_fill()
96. What will be the output of the following Python code?
import turtle
t=turtle.Pen
t.tilt(75)
t.forward(100)
import turtle
t=turtle.Pen
t.tilt(75)
t.forward(100)
97. All modular designs are because of a top-down design process.
98. What is the purpose of the __name__ variable in a Python module?
99. What is output of print(math.pow(3, 2))?
100. What will be the output of the following Python code?
pickle.HIGHEST_PROTOCOL
pickle.HIGHEST_PROTOCOL
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.