18 Memory & GC questions from the C# 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 region of memory where reference-type objects are allocated and from which the runtime's automatic collector reclaims unreachable instances
B.the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets
C.the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young
D.a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation
Answer + AI explanation with Pro
2. Which term means: "the region of memory where reference-type objects are allocated and from which the runtime's automatic collector reclaims unreachable instances"?
Junior
A.Managed heap
B.IDisposable interface
C.Large object heap
D.Using statement
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Managed heap — a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown
B.Managed heap — the region of memory where reference-type objects are allocated and from which the runtime's automatic collector reclaims unreachable instances
C.Managed heap — the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young
D.Managed heap — an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
Answer + AI explanation with Pro
4. What is Generational collection?
Mid
A.the region of memory where reference-type objects are allocated and from which the runtime's automatic collector reclaims unreachable instances
B.the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young
C.a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation
D.an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
Answer + AI explanation with Pro
5. Which term means: "the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young"?
Mid
A.Finalizer
B.Generational collection
C.IDisposable interface
D.Using statement
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Generational collection — the region of memory where reference-type objects are allocated and from which the runtime's automatic collector reclaims unreachable instances
B.Generational collection — the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young
C.Generational collection — a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation
D.Generational collection — the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets
Answer + AI explanation with Pro
7. What is IDisposable interface?
Mid
A.the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets
B.an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
C.a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown
D.the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young
Answer + AI explanation with Pro
8. Which term means: "the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets"?
Mid
A.Finalizer
B.Using statement
C.Large object heap
D.IDisposable interface
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.IDisposable interface — a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation
B.IDisposable interface — the region of memory where reference-type objects are allocated and from which the runtime's automatic collector reclaims unreachable instances
C.IDisposable interface — an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
D.IDisposable interface — the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets
Answer + AI explanation with Pro
10. What is Using statement?
Mid
A.an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
B.a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown
C.the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets
D.the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young
Answer + AI explanation with Pro
11. Which term means: "a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown"?
Mid
A.Using statement
B.Generational collection
C.IDisposable interface
D.Large object heap
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Using statement — an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
B.Using statement — the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets
C.Using statement — the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young
D.Using statement — a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown
Answer + AI explanation with Pro
13. What is Finalizer?
Senior
A.the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets
B.an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
C.a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation
D.a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown
Answer + AI explanation with Pro
14. Which term means: "an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection"?
Senior
A.Finalizer
B.Using statement
C.Large object heap
D.Generational collection
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Finalizer — a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown
B.Finalizer — a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation
C.Finalizer — an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
D.Finalizer — the region of memory where reference-type objects are allocated and from which the runtime's automatic collector reclaims unreachable instances
Answer + AI explanation with Pro
16. What is Large object heap?
Senior
A.a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation
B.a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown
C.an object cleanup method run non-deterministically by the collector before reclamation, used as a safety net for unmanaged resources and adding overhead to collection
D.the region of memory where reference-type objects are allocated and from which the runtime's automatic collector reclaims unreachable instances
Answer + AI explanation with Pro
17. Which term means: "a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation"?
Senior
A.Large object heap
B.Using statement
C.IDisposable interface
D.Managed heap
Answer + AI explanation with Pro
18. Which statement is correct?
Senior
A.Large object heap — a separate area for allocations above a size threshold that is collected less frequently and historically not compacted, making it prone to fragmentation
B.Large object heap — the collector strategy that segregates objects into age tiers, collecting the youngest most often on the premise that most objects die young
C.Large object heap — a construct that guarantees Dispose is invoked on a resource when control leaves the block, even if an exception is thrown
D.Large object heap — the contract exposing a Dispose method for deterministic release of unmanaged resources such as file handles or sockets
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 & GC question come with Pro.