41. What will be the output of the following Python code?
print(math.isinf(float('-inf')))
print(math.isinf(float('-inf')))
42. What will be the output of the following Python code?
random.randrange(0,91,5)
random.randrange(0,91,5)
43. What will be the output of the following Python code?
import sys
eval(sys.stdin.readline())
Computer
import sys
eval(sys.stdin.readline())
Computer
44. What does print(os.geteuid()) print?
45. What will be the output of the following Python code?
import random
random.choice([10.4, 56.99, 76])
import random
random.choice([10.4, 56.99, 76])
46. How can you prevent a module from executing code when imported?
47. What the does random.seed(3) return?
48. What will be the output of the following code:
import datetime
print(datetime.date.today())
import datetime
print(datetime.date.today())
49. Which of the statements about modules is false?
50. What will be the output of the following Python code, if the sys module has already been imported?
sys.stdout.write("hello world")
sys.stdout.write("hello world")
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.