Learn Without Walls
← Back to Module 10

Module 10 Quiz

Test your knowledge of Modules & Imports • 12 Questions

Question 1

What is a Python module?

Question 2

What does math.sqrt(49) return?

Question 3

What is the difference between math.ceil(3.2) and math.floor(3.2)?

Question 4

Which of the following correctly imports only the randint function from the random module?

Question 5

After running from math import sqrt, how do you call the square root function?

Question 6

What does random.choice(["a", "b", "c"]) do?

Question 7

What does import math as m do?

Question 8

What is pip?

Question 9

What is the purpose of a requirements.txt file?

Question 10

What does if __name__ == "__main__": do?

Question 11

What does random.shuffle(my_list) return?

Question 12

Where should import statements be placed in a Python file?

Quiz Results


Back to Module 10