Memory & Mutability interview questions

15 real Memory & Mutability questions from the Python bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is mutable default argument?

Junior
  1. A.CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
  2. B.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
  3. C.the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
  4. D.a comparison that tests whether two names point to the very same object in memory rather than equal values
Reveal the answer + AI explanation — free account

2. Which term means: "a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug"?

Junior
  1. A.garbage collector
  2. B.mutable default argument
  3. C.GIL
  4. D.is operator
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.mutable default argument — a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
  2. B.mutable default argument — a comparison that tests whether two names point to the very same object in memory rather than equal values
  3. C.mutable default argument — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
  4. D.mutable default argument — CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
Reveal the answer + AI explanation — free account

4. What is GIL?

Mid
  1. A.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
  2. B.a comparison that tests whether two names point to the very same object in memory rather than equal values
  3. C.the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
  4. D.the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.GIL — a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
  2. B.GIL — CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
  3. C.GIL — the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
  4. D.GIL — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Reveal the answer + AI explanation — free account

7. What is reference counting?

Mid
  1. A.the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
  2. B.the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
  3. C.CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
  4. D.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
Reveal the answer + AI explanation — free account

8. Which term means: "CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero"?

Mid
  1. A.reference counting
  2. B.mutable default argument
  3. C.is operator
  4. D.garbage collector
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.reference counting — the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
  2. B.reference counting — a comparison that tests whether two names point to the very same object in memory rather than equal values
  3. C.reference counting — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
  4. D.reference counting — CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
Reveal the answer + AI explanation — free account

10. What is garbage collector?

Senior
  1. A.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
  2. B.the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
  3. C.CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
  4. D.the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Reveal the answer + AI explanation — free account

11. Which term means: "the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free"?

Senior
  1. A.is operator
  2. B.mutable default argument
  3. C.garbage collector
  4. D.reference counting
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Senior
  1. A.garbage collector — a comparison that tests whether two names point to the very same object in memory rather than equal values
  2. B.garbage collector — a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
  3. C.garbage collector — the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
  4. D.garbage collector — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Reveal the answer + AI explanation — free account

13. What is is operator?

Mid
  1. A.a defining-time-evaluated parameter default, like a list, that persists and accumulates across calls as a common bug
  2. B.the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
  3. C.CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
  4. D.a comparison that tests whether two names point to the very same object in memory rather than equal values
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.is operator — a comparison that tests whether two names point to the very same object in memory rather than equal values
  2. B.is operator — the supplementary cyclic collector that reclaims groups of objects referencing each other that reference counting alone cannot free
  3. C.is operator — CPython's primary memory-management scheme that frees an object when the number of references to it reaches zero
  4. D.is operator — the global interpreter lock that allows only one thread to execute bytecode at a time in CPython
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Memory & Mutability free