51. What is returned by math.modf(1.0)?
52. What will be the output of the following Python code?
import sys
eval(sys.stdin.readline())
"India"
import sys
eval(sys.stdin.readline())
"India"
53. The output of the function len(sys.argv) is . . . . . . . .
54. How can you check if a module is available and can be imported in Python?
55. What is the output of print(math.trunc('3.1'))?
56. . . . . . . . . is a string literal denoted by triple quotes for providing the specifications of certain program elements.
57. What is the output of the following code:
from random import randint
print(randint(1, 10))
from random import randint
print(randint(1, 10))
58. What will be the output of the following Python code if the system date is: 6/19/2017
tday=datetime.date.today()
tdelta=datetime.timedelta(days=10)
print(tday+tdelta)
tday=datetime.date.today()
tdelta=datetime.timedelta(days=10)
print(tday+tdelta)
59. Which of the following is equivalent to random.randint(3, 6)?
60. What is the interval of the value generated by the function random.random(), assuming that the random module has already been imported?
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.