1. What is a Python module?
2. How can you use a module in Python?
3. What is the purpose of the import statement in Python?
4. What does the as keyword do when used with the import statement?
5. What will be the output of the following code:
import math
print(math.pi)
import math
print(math.pi)
6. What is the purpose of the from ... import ... statement in Python?
7. What is a namespace in Python?
8. How can you access a function my_function from a module my_module in Python?
9. What will be the output of the following code:
from math import sqrt
print(sqrt(16))
from math import sqrt
print(sqrt(16))
10. How can you reload a module in Python?
Read More Section(Module in Python)
Each Section contains maximum 100 MCQs question on Module in Python. To get more questions visit other sections.