Question
In Python, which comparison about Reference Counting and Garbage Collection is accurate?
- There is no practical difference in behavior, performance, or maintainability when Reference Counting and Garbage Collection is involved.
- The oldest option related to Reference Counting and Garbage Collection is always the right production choice regardless of workload or context.
- Reference counting frees many objects immediately, while cycle detection is needed when objects keep each other alive indirectly.
- Differences around Reference Counting and Garbage Collection 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. Reference counting frees many objects immediately, while cycle detection is needed when objects keep each other alive indirectly.
Reference counting frees many objects immediately, while cycle detection is needed when objects keep each other alive indirectly. This is the comparison that usually separates memorization from understanding.
Track: Python