Search⌘ K
AI Features

Quiz: Organizing Code with Modules

Test your understanding of modular design, import mechanics, custom module creation, and the Python Standard Library.

We'll cover the following...
Technical Quiz
1.

What is a clear indicator that a single script should be broken into modules?

A.

The script uses print() statements for debugging.

B.

The script contains global variables used by unrelated functions (e.g., user_settings and calculation_cache).

C.

The script runs successfully but takes 2 seconds to execute.

D.

The script imports more than three standard library modules.


1 / 8
...