51. What will be the output of the following Python code if the system date is 21st June, 2017 (Wednesday)?
tday=datetime.date.today()
print(tday.isoweekday())
tday=datetime.date.today()
print(tday.isoweekday())52. What is the result of math.fsum([.1 for i in range(20)])?
53. What is x if x = math.isfinite(float('0.0'))?
54. What will be the output of the following Python code?
import random
random.choice(2,3,4)
import random
random.choice(2,3,4)55. How can you uninstall a Python module using pip?
56. What will be the output of the following Python code?
import datetime
d=datetime.date(2016,7,24)
print(d)
import datetime
d=datetime.date(2016,7,24)
print(d)57. How can you create your own module in Python?
58. What is the value of x if x = math.factorial(0)?
59. Which of the following is equivalent to random.randrange(3)?
60. Which of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))?
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.
