81. Program code making use of a given module is called a . . . . . . . . of the module.
82. Pick the correct statement regarding pickle and marshal modules.
83. How can you access a variable my_variable from a module my_module in Python?
84. What will be the output of the following Python code, if the time module has already been imported?
def num(m):
t1 = time.time()
for i in range(0,m):
print(i)
t2 = time.time()
print(str(t2-t1))
num(3)
def num(m):
t1 = time.time()
for i in range(0,m):
print(i)
t2 = time.time()
print(str(t2-t1))
num(3)
85. What does os.fchmod(fd, mode) do?
86. What will be the output of the following Python code?
>>> -float('inf') + float('inf')
>>> -float('inf') + float('inf')
87. What will be the output shape of the following Python code?
import turtle
t=turtle.Pen()
for i in range(1,4):
t.forward(60)
t.left(90)
import turtle
t=turtle.Pen()
for i in range(1,4):
t.forward(60)
t.left(90)
88. The value returned when we use the function isoweekday() is . . . . . . . . and that for the function weekday() is . . . . . . . . if the system date is 19th June, 2017 (Monday).
89. What will be the output of print(math.copysign(3, -1))?
90. The randrange function returns only an integer value.
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.