Modules are a very important tool in python. When we talk about any built-in module, we need to know about the properties and the definitions of functions defined within. With this quiz, we hope you will gain a deeper understanding of the modules in Python. All the best!
Time limit: 0
Quiz Summary
0 of 12 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
How many times can we import any module in an interpreter session?
Correct
Incorrect
Question 5 of 12
5. Question
Where does the system search the imported module?
Correct
Incorrect
Question 6 of 12
6. Question
Which of the following can create .pyc files for all modules at once?
Correct
Incorrect
Question 7 of 12
7. Question
Which of the following is a standard module?
Correct
Incorrect
Question 8 of 12
8. Question
In the code given below which of the following is the module function?
# Code start
import math
print(math.sqrt(9))
# Code ends
Correct
Incorrect
Question 9 of 12
9. Question
What is the output of the following?
# Code starts
def fib(n):
if n==1:
return 1
else:
return n*fib(n-1)
print(fib(5))
# Code ends
Correct
Incorrect
Question 10 of 12
10. Question
Which of the following can be converted to a module?
# Code starts
def fib(n):
if n==1:
return 1
else:
return n*fib(n-1)
print(fib(5))
# Code ends
Correct
Incorrect
Question 11 of 12
11. Question
Which type of module is the OS in python?
Correct
Incorrect
Question 12 of 12
12. Question
How do we find all the names any module defines?
Correct
Incorrect
Summary
With the end of the quiz base on modules, we have checked all the concepts related to modules. Focus on the major concepts of the modules and then move ahead and attempt the upcoming quizzes. Happy Learning!
Thank you so much for the whole team this was really helpful 😊