Memory & GC interview questions

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
  1. A.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
  2. B.the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
  3. C.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
  4. D.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
Reveal the answer + AI explanation — free account

2. Which term means: "the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable"?

Junior
  1. A.Finalization
  2. B.IDisposable
  3. C.Managed heap
  4. D.Generational collection
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. 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
  2. B.Managed heap — the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
  3. C.Managed heap — the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
  4. 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
Reveal the answer + AI explanation — free account

4. What is Garbage collection?

Junior
  1. 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
  2. B.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
  3. C.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
  4. D.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
Reveal the answer + AI explanation — free account

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"?

Junior
  1. A.Server garbage collection
  2. B.Garbage collection
  3. C.IDisposable
  4. D.Finalization
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Garbage collection — the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
  2. B.Garbage collection — the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
  3. 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
  4. 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
Reveal the answer + AI explanation — free account

7. What is Generational collection?

Mid
  1. 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
  2. B.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
  3. C.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
  4. D.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
Reveal the answer + AI explanation — free account

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"?

Mid
  1. A.Finalization
  2. B.IDisposable
  3. C.Generational collection
  4. D.Managed heap
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. 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
  2. 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
  3. 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
  4. 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
Reveal the answer + AI explanation — free account

10. What is Large Object Heap?

Mid
  1. A.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
  2. B.a separate area for allocations above roughly 85,000 bytes, collected only during full passes and not compacted by default to avoid costly moves
  3. C.a non-deterministic cleanup step the collector runs on objects that declare it, used as a safety net to free unmanaged handles before reclamation
  4. D.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
Reveal the answer + AI explanation — free account

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"?

Mid
  1. A.Finalization
  2. B.Server garbage collection
  3. C.Managed heap
  4. D.Large Object Heap
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. 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
  2. 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
  3. 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
  4. 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
Reveal the answer + AI explanation — free account

13. What is IDisposable?

Mid
  1. A.the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
  2. B.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
  3. C.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
  4. D.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
Reveal the answer + AI explanation — free account

14. Which term means: "the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector"?

Mid
  1. A.Generational collection
  2. B.Garbage collection
  3. C.Large Object Heap
  4. D.IDisposable
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.IDisposable — the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
  2. B.IDisposable — a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
  3. 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
  4. D.IDisposable — the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
Reveal the answer + AI explanation — free account

16. What is Finalization?

Senior
  1. A.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
  2. B.the automatic reclamation of memory occupied by objects that the application can no longer reach, removing the need for manual freeing
  3. C.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
  4. 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
Reveal the answer + AI explanation — free account

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"?

Senior
  1. A.Managed heap
  2. B.Finalization
  3. C.Garbage collection
  4. D.Generational collection
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.Finalization — the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
  2. 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
  3. C.Finalization — a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
  4. 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
Reveal the answer + AI explanation — free account

19. What is Server garbage collection?

Senior
  1. 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
  2. B.the interface whose single method gives callers a deterministic hook to release unmanaged resources without waiting for the collector
  3. C.the strategy of segregating objects into age groups so short-lived allocations are reclaimed cheaply and frequently while old objects are scanned rarely
  4. D.a throughput-oriented mode that uses a dedicated heap and collector thread per logical processor, suited to high-load multi-core workloads
Reveal the answer + AI explanation — free account

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"?

Senior
  1. A.Large Object Heap
  2. B.Managed heap
  3. C.Finalization
  4. D.Server garbage collection
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. 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
  2. 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
  3. C.Server garbage collection — the region of memory from which object instances are allocated and which the automatic collector reclaims when objects become unreachable
  4. 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
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 & GC free