Memory & Mutability interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

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

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
  1. A.garbage collector
  2. B.mutable default argument
  3. C.GIL
  4. D.is operator

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.is operator
  2. B.reference counting
  3. C.garbage collector
  4. D.GIL

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.reference counting
  2. B.mutable default argument
  3. C.is operator
  4. D.garbage collector

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.is operator
  2. B.mutable default argument
  3. C.garbage collector
  4. D.reference counting

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.is operator
  2. B.GIL
  3. C.mutable default argument
  4. D.reference counting

Answer + AI explanation with Pro

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

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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers