Memory Management interview questions

15 Memory Management questions from the Swift 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 ARC?

Junior
  1. A.the bracketed declaration in a closure that specifies weak or unowned handling of captured references
  2. B.the system that automatically frees a class instance once no strong references to it remain
  3. C.a non-owning pointer that becomes nil automatically when its target is deallocated
  4. D.the default ownership that keeps the referenced instance alive while the pointer exists

Answer + AI explanation with Pro

2. Which term means: "the system that automatically frees a class instance once no strong references to it remain"?

Junior
  1. A.Strong reference
  2. B.ARC
  3. C.Retain cycle
  4. D.weak reference

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.ARC — the bracketed declaration in a closure that specifies weak or unowned handling of captured references
  2. B.ARC — the system that automatically frees a class instance once no strong references to it remain
  3. C.ARC — the default ownership that keeps the referenced instance alive while the pointer exists
  4. D.ARC — a situation where two objects hold each other strongly so neither is ever freed

Answer + AI explanation with Pro

4. What is Strong reference?

Mid
  1. A.a non-owning pointer that becomes nil automatically when its target is deallocated
  2. B.the default ownership that keeps the referenced instance alive while the pointer exists
  3. C.a situation where two objects hold each other strongly so neither is ever freed
  4. D.the bracketed declaration in a closure that specifies weak or unowned handling of captured references

Answer + AI explanation with Pro

5. Which term means: "the default ownership that keeps the referenced instance alive while the pointer exists"?

Mid
  1. A.Strong reference
  2. B.Retain cycle
  3. C.Capture list
  4. D.ARC

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Strong reference — the default ownership that keeps the referenced instance alive while the pointer exists
  2. B.Strong reference — a situation where two objects hold each other strongly so neither is ever freed
  3. C.Strong reference — the system that automatically frees a class instance once no strong references to it remain
  4. D.Strong reference — the bracketed declaration in a closure that specifies weak or unowned handling of captured references

Answer + AI explanation with Pro

7. What is weak reference?

Mid
  1. A.a situation where two objects hold each other strongly so neither is ever freed
  2. B.a non-owning pointer that becomes nil automatically when its target is deallocated
  3. C.the default ownership that keeps the referenced instance alive while the pointer exists
  4. D.the system that automatically frees a class instance once no strong references to it remain

Answer + AI explanation with Pro

8. Which term means: "a non-owning pointer that becomes nil automatically when its target is deallocated"?

Mid
  1. A.Strong reference
  2. B.Retain cycle
  3. C.ARC
  4. D.weak reference

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.weak reference — the system that automatically frees a class instance once no strong references to it remain
  2. B.weak reference — a situation where two objects hold each other strongly so neither is ever freed
  3. C.weak reference — a non-owning pointer that becomes nil automatically when its target is deallocated
  4. D.weak reference — the default ownership that keeps the referenced instance alive while the pointer exists

Answer + AI explanation with Pro

10. What is Retain cycle?

Senior
  1. A.the bracketed declaration in a closure that specifies weak or unowned handling of captured references
  2. B.the system that automatically frees a class instance once no strong references to it remain
  3. C.a situation where two objects hold each other strongly so neither is ever freed
  4. D.the default ownership that keeps the referenced instance alive while the pointer exists

Answer + AI explanation with Pro

11. Which term means: "a situation where two objects hold each other strongly so neither is ever freed"?

Senior
  1. A.Retain cycle
  2. B.Strong reference
  3. C.ARC
  4. D.weak reference

Answer + AI explanation with Pro

12. Which statement is correct?

Senior
  1. A.Retain cycle — the bracketed declaration in a closure that specifies weak or unowned handling of captured references
  2. B.Retain cycle — a situation where two objects hold each other strongly so neither is ever freed
  3. C.Retain cycle — the default ownership that keeps the referenced instance alive while the pointer exists
  4. D.Retain cycle — a non-owning pointer that becomes nil automatically when its target is deallocated

Answer + AI explanation with Pro

13. What is Capture list?

Senior
  1. A.the system that automatically frees a class instance once no strong references to it remain
  2. B.the default ownership that keeps the referenced instance alive while the pointer exists
  3. C.the bracketed declaration in a closure that specifies weak or unowned handling of captured references
  4. D.a non-owning pointer that becomes nil automatically when its target is deallocated

Answer + AI explanation with Pro

14. Which term means: "the bracketed declaration in a closure that specifies weak or unowned handling of captured references"?

Senior
  1. A.Retain cycle
  2. B.Capture list
  3. C.Strong reference
  4. D.weak reference

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.Capture list — the system that automatically frees a class instance once no strong references to it remain
  2. B.Capture list — a situation where two objects hold each other strongly so neither is ever freed
  3. C.Capture list — the bracketed declaration in a closure that specifies weak or unowned handling of captured references
  4. D.Capture list — a non-owning pointer that becomes nil automatically when its target is deallocated

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 Management 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