15 Memory & Mutability questions from the Python bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
B.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
C.the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
D.a comparison that tests whether two names point to the very same object in memory rather than equal values
Answer + AI explanation with Pro
2. Which term means: "a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug"?
Junior
A.garbage collector
B.mutable default argument
C.GIL
D.is operator
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.mutable default argument — a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
B.mutable default argument — a comparison that tests whether two names point to the very same object in memory rather than equal values
C.mutable default argument — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
D.mutable default argument — CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
Answer + AI explanation with Pro
4. What is GIL?
Mid
A.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
B.a comparison that tests whether two names point to the very same object in memory rather than equal values
C.the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
D.the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Answer + AI explanation with Pro
5. Which term means: "the global interpreter lock that allows only one thread to execute bytecode at a time in CPython"?
Mid
A.is operator
B.reference counting
C.garbage collector
D.GIL
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.GIL — a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
B.GIL — CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
C.GIL — the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
D.GIL — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Answer + AI explanation with Pro
7. What is reference counting?
Mid
A.the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
B.the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
C.CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
D.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
Answer + AI explanation with Pro
8. Which term means: "CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero"?
Mid
A.reference counting
B.mutable default argument
C.is operator
D.garbage collector
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.reference counting — the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
B.reference counting — a comparison that tests whether two names point to the very same object in memory rather than equal values
C.reference counting — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
D.reference counting — CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
Answer + AI explanation with Pro
10. What is garbage collector?
Senior
A.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
B.the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
C.CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
D.the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Answer + AI explanation with Pro
11. Which term means: "the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free"?
Senior
A.is operator
B.mutable default argument
C.garbage collector
D.reference counting
Answer + AI explanation with Pro
12. Which statement is correct?
Senior
A.garbage collector — a comparison that tests whether two names point to the very same object in memory rather than equal values
B.garbage collector — a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
C.garbage collector — the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
D.garbage collector — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Answer + AI explanation with Pro
13. What is is operator?
Mid
A.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
B.the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
C.CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
D.a comparison that tests whether two names point to the very same object in memory rather than equal values
Answer + AI explanation with Pro
14. Which term means: "a comparison that tests whether two names point to the very same object in memory rather than equal values"?
Mid
A.is operator
B.GIL
C.mutable default argument
D.reference counting
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.is operator — a comparison that tests whether two names point to the very same object in memory rather than equal values
B.is operator — the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
C.is operator — CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
D.is operator — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Memory & Mutability question come with Pro.