Q
How does CPython primarily manage memory?
-
A
Reference counting, plus a cyclic garbage collector
-
B
Manual free() calls
-
C
It never frees memory
-
D
Only a mark-and-sweep garbage collector
Correct Answer:
A. Reference counting, plus a cyclic garbage collector
Explanation:
Reference counting frees most objects immediately. The gc module handles reference cycles.