1. What is returned by math.expm1(p)?
2. What is math.factorial(4.0)?
3. Both the functions randint and uniform accept . . . . . . . . parameters.
4. What is the purpose of the __file__ attribute in a Python module?
5. What will be the output of the following Python code?
random.seed(3)
random.randint(1,5)
2
random.seed(3)
random.randint(1,5)
random.seed(3)
random.randint(1,5)
2
random.seed(3)
random.randint(1,5)
6. The command which helps us to reset the pen (turtle):
7. What is the result of sum([.1 for i in range(20)])?
8. What will be the output of the following code:
from math import ceil
print(ceil(4.3))
from math import ceil
print(ceil(4.3))
9. Which of the following cannot be pickled?
10. What will be the output of the following Python code?
import sys
sys.argv[0]
import sys
sys.argv[0]
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.