Python: In Python, which comparison about Import System and sys.modules is accurate?

Difficulty:

Easy

Questions:

1

Time Limit:

2 minutes

Passing Score:

100%

Question

In Python, which comparison about Import System and sys.modules is accurate?

  1. There is no practical difference in behavior, performance, or maintainability when Import System and sys.modules is involved.
  2. The oldest option related to Import System and sys.modules is always the right production choice regardless of workload or context.
  3. Import caching improves efficiency and consistency, while dynamic reload behavior is a different and more explicit concern.
  4. Differences around Import System and sys.modules are mostly cosmetic, so correctness and debugging quality do not really change.

Hint

Focus on the behavior or tradeoff, not just the keyword.

Answer and rationale

Correct answer: C. Import caching improves efficiency and consistency, while dynamic reload behavior is a different and more explicit concern.

Import caching improves efficiency and consistency, while dynamic reload behavior is a different and more explicit concern. This is the comparison that usually separates memorization from understanding.

Track: Python