Quiz Question 1 of 5
Consider a scenario where a Python module volume.py
runs a loop that calculates the volume of a sphere for a large range of radii and stores the result. What could be a significant side effect when importing this module into another program?
Choose the correct answer below:
-
A
The module will automatically print all volumes to the console, cluttering the output.
-
B
The imported module will run the loop, causing unnecessary computation.
-
C
The program will crash due to the memory overload from storing large volumes.
-
D
The loop will not run because imported modules do not execute code by default.