Memory Management interview questions

15 real Memory Management questions from the Swift 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 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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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