71. Point out the error (if any) in the code shown below if the system date is 18th June, 2017?
tday=datetime.date.today()
bday=datetime.date(2017,9,18)
till_bday=bday-tday
print(till_bday)
tday=datetime.date.today()
bday=datetime.date(2017,9,18)
till_bday=bday-tday
print(till_bday)72. What will be the output of the following Python code?
import time
time.time()
import time
time.time()73. What will be the output of the following Python code?
import turtle
t=turtle.Pen()
t.backward(100)
t.penup()
t.right(45)
t.isdown()
import turtle
t=turtle.Pen()
t.backward(100)
t.penup()
t.right(45)
t.isdown()74. The copy module uses the . . . . . . . . protocol for shallow and deep copy.
75. Which of the following is true about top-down design process?
76. What is the result of math.trunc(3.1)?
77. What will be the output of the following Python code?
import sys
sys.stderr.write(“hello”)
import sys
sys.stderr.write(“hello”)78. What will be the output of the following Python code, if the code is run on Windows operating system?
import sys
if sys.platform[:2]== 'wi':
print("Hello")
import sys
if sys.platform[:2]== 'wi':
print("Hello")79. The sleep function (under the time module) is used to . . . . . . . .
80. What will be the output of the following Python code?
from math import factorial
print(math.factorial(5))
from math import factorial
print(math.factorial(5))Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.
