W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
126 questions for “Memory & Garbage Collection”
Found in 1 field. Select a question to see its full answer.
Matching topics
C#
Memory
&
Garbage
Collection
18
Python
Memory
Management &
Garbage
Collection
15
JavaScript
Memory
Management &
Garbage
Collection
10
Java
Garbage
Collection
9
C#
Arrays, Span<T> &
Memory
<T>
3
Information Technology
126 questions in 7 technologies
#
Question
Technology
Topic
Level
1
How would you use a
memory
profiler (or dotnet-counters / dotnet-gcdump) to diagnose excessive
garbage
collection
pressure in a production .NET application?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Advanced
2
How does
garbage
collection
in .NET work, and what three phases does a
collection
cycle go through?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Beginner
3
How would you use ArrayPool<T> to reduce
garbage
collection
pressure in a high-throughput, buffer-allocating hot path?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Advanced
4
How does
garbage
collection
work in .NET?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Beginner
5
What are .NET's
garbage
collection
'generations,' and what's the core assumption behind this design?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Beginner
6
What is a
memory
leak in a
garbage
-collected language like C#, given that the GC handles cleanup automatically?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Intermediate
7
What is the difference between the stack and the heap in .NET
memory
management?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Beginner
8
How does the IDisposable pattern and the 'using' statement help manage UNMANAGED resources that the
garbage
collector doesn't automatically clean up?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Intermediate
9
What causes managed
memory
leaks despite the GC?
C# › Memory & Garbage Collection
C#
Memory
&
Garbage
Collection
Advanced
10
What is a
memory
leak in JavaScript, given that it has automatic
garbage
collection
?
JavaScript › Memory Management & Garbage Collection
JavaScript
Memory
Management &
Garbage
Collection
Beginner
Show all 126 questions in Information Technology