21 real Memory & GC questions from the .NET 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 Managed heap?
Junior
A.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
B.the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
C.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
D.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
2. Which term means: "the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable"?
A.Managed heap — a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation
B.Managed heap — the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
C.Managed heap — the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
D.Managed heap — a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
A.a separate area for allocations above roughly 85,000 bytes, collected only during full passes and not compacted by default to avoid costly moves
B.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
C.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
D.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
5. Which term means: "the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing"?
A.Garbage collection — the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
B.Garbage collection — the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
C.Garbage collection — a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation
D.Garbage collection — the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
A.a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation
B.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
C.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
D.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
8. Which term means: "the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely"?
A.Generational collection — a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
B.Generational collection — the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
C.Generational collection — a separate area for allocations above roughly 85,000 bytes, collected only during full passes and not compacted by default to avoid costly moves
D.Generational collection — a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation
11. Which term means: "a separate area for allocations above roughly 85,000 bytes, collected only during full passes and not compacted by default to avoid costly moves"?
A.Large Object Heap — the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
B.Large Object Heap — the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
C.Large Object Heap — a separate area for allocations above roughly 85,000 bytes, collected only during full passes and not compacted by default to avoid costly moves
D.Large Object Heap — a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
A.the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
B.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
C.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
D.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
14. Which term means: "the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector"?
A.IDisposable — the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
B.IDisposable — a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
C.IDisposable — the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
D.IDisposable — the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
A.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
B.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
C.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
D.a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation
17. Which term means: "a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation"?
A.Finalization — the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
B.Finalization — a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation
C.Finalization — a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
D.Finalization — the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
A.a separate area for allocations above roughly 85,000 bytes, collected only during full passes and not compacted by default to avoid costly moves
B.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
C.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
D.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
20. Which term means: "a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads"?
A.Server garbage collection — the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
B.Server garbage collection — a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
C.Server garbage collection — the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
D.Server garbage collection — a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation
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.