81. What is the value of x if x = math.sqrt(4)?
82. State whether true or false.
s = time.time()
t= time.time()
s == t
s = time.time()
t= time.time()
s == t83. What is math.floor(0o10)?
84. What will be the output of the following code:
import random
print(random.choice([1, 2, 3, 4]))
import random
print(random.choice([1, 2, 3, 4]))85. Which of the following functions can be used to find the coordinated universal time, assuming that the datetime module has already been imported?
86. Which type of elements are accepted by random.shuffle()?
87. What will be the output of the following Python function, assuming that the random library has already been included?
random.shuffle[1,2,24]
random.shuffle[1,2,24]88. Which of the following will throw an error if used after the following Python code?
tday=datetime.date.today()
bday=datetime.date(2017,9,18)
t_day=bday-tday
tday=datetime.date.today()
bday=datetime.date(2017,9,18)
t_day=bday-tday89. What does os.close(f) do?
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.
