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.
A.the bracketed declaration in a closure that specifies weak or unowned handling of captured references
B.the system that automatically frees a class instance once no strong references to it remain
C.a non-owning pointer that becomes nil automatically when its target is deallocated
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
A.Strong reference
B.ARC
C.Retain cycle
D.weak reference
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.ARC — the bracketed declaration in a closure that specifies weak or unowned handling of captured references
B.ARC — the system that automatically frees a class instance once no strong references to it remain
C.ARC — the default ownership that keeps the referenced instance alive while the pointer exists
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
A.a non-owning pointer that becomes nil automatically when its target is deallocated
B.the default ownership that keeps the referenced instance alive while the pointer exists
C.a situation where two objects hold each other strongly so neither is ever freed
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
A.Strong reference
B.Retain cycle
C.Capture list
D.ARC
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Strong reference — the default ownership that keeps the referenced instance alive while the pointer exists
B.Strong reference — a situation where two objects hold each other strongly so neither is ever freed
C.Strong reference — the system that automatically frees a class instance once no strong references to it remain
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
A.a situation where two objects hold each other strongly so neither is ever freed
B.a non-owning pointer that becomes nil automatically when its target is deallocated
C.the default ownership that keeps the referenced instance alive while the pointer exists
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
A.Strong reference
B.Retain cycle
C.ARC
D.weak reference
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.weak reference — the system that automatically frees a class instance once no strong references to it remain
B.weak reference — a situation where two objects hold each other strongly so neither is ever freed
C.weak reference — a non-owning pointer that becomes nil automatically when its target is deallocated
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
A.the bracketed declaration in a closure that specifies weak or unowned handling of captured references
B.the system that automatically frees a class instance once no strong references to it remain
C.a situation where two objects hold each other strongly so neither is ever freed
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
A.Retain cycle
B.Strong reference
C.ARC
D.weak reference
Answer + AI explanation with Pro
12. Which statement is correct?
Senior
A.Retain cycle — the bracketed declaration in a closure that specifies weak or unowned handling of captured references
B.Retain cycle — a situation where two objects hold each other strongly so neither is ever freed
C.Retain cycle — the default ownership that keeps the referenced instance alive while the pointer exists
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
A.the system that automatically frees a class instance once no strong references to it remain
B.the default ownership that keeps the referenced instance alive while the pointer exists
C.the bracketed declaration in a closure that specifies weak or unowned handling of captured references
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
A.Retain cycle
B.Capture list
C.Strong reference
D.weak reference
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Capture list — the system that automatically frees a class instance once no strong references to it remain
B.Capture list — a situation where two objects hold each other strongly so neither is ever freed
C.Capture list — the bracketed declaration in a closure that specifies weak or unowned handling of captured references
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.