61. What will be the output of the following Python code?
#mod1
def change(a):
b=[x*2 for x in a]
print(b)
#mod2
def change(a):
b=[x*x for x in a]
print(b)
from mod1 import change
from mod2 import change
#main
s=[1,2,3]
change(s)
#mod1
def change(a):
b=[x*2 for x in a]
print(b)
#mod2
def change(a):
b=[x*x for x in a]
print(b)
from mod1 import change
from mod2 import change
#main
s=[1,2,3]
change(s)62. Which of the following functions is not defined under the sys module?
63. What will be the output of the following Python code?
import sys
sys.stdin.readline()
Examveda
import sys
sys.stdin.readline()
Examveda64. Fill in the blank such that the following Python code results in the formation of an inverted, equilateral triangle.
import turtle
t=turtle.Pen()
for i in range(0,3):
t.forward(150)
t.right(_____)
import turtle
t=turtle.Pen()
for i in range(0,3):
t.forward(150)
t.right(_____)65. What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?
import turtle
t=turtle.Pen()
t.goto(100,0)
t.towards(0,0)
import turtle
t=turtle.Pen()
t.goto(100,0)
t.towards(0,0)66. The function random.randint(4) can return only one of the following values. Which?
67. What will be the output of print(math.factorial(4.5))?
68. What will be the output of the following Python code if the system date is 18th August, 2016?
tday=datetime.date.today()
print(tday.month())
tday=datetime.date.today()
print(tday.month())69. What will be the output of the following Python code?
import turtle
t=turtle.Pen()
t.color(0,0,1)
t.begin_fill()
t.circle(15)
t.end_fill()
import turtle
t=turtle.Pen()
t.color(0,0,1)
t.begin_fill()
t.circle(15)
t.end_fill()70. Which of the following functions can be used to read data from a file using a file descriptor?
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.
