CLR, JIT, garbage collection generations, IDisposable, using, Span, boxing, assemblies and NuGet.
35 cards · basic cards · AI-written, checked twice. Edit anything.
- What is the CLR?
Show answer
Common Language Runtime, the virtual machine that executes .NET code
- What does JIT compilation do?
Show answer
Converts IL (intermediate language) to native machine code at runtime
- Name the three generations of garbage collection
Show answer
Generation 0, Generation 1, Generation 2
- What is GC Generation 0?
Show answer
The youngest generation, collected most frequently
- What is GC Generation 1?
Show answer
The middle generation, collected less frequently than Gen 0
- What is GC Generation 2?
Show answer
The oldest generation, collected least frequently
- What is the Large Object Heap (LOH)?
Show answer
A separate heap for objects 85KB or larger
- What is the IDisposable pattern?
Show answer
A pattern for explicitly freeing unmanaged resources
- What does Dispose() method do?
Show answer
Releases unmanaged resources held by an object
- What is the using statement?
Show answer
A statement that automatically calls Dispose() when the scope exits
- What is using declaration in C# 8+?
Show answer
Declares a variable and automatically calls Dispose() at end of scope
- What is Span<T>?
Show answer
A stack-allocated safe abstraction over a contiguous block of memory
- What is boxing?
Show answer
Converting a value type to a reference type on the heap
- What is unboxing?
Show answer
Converting a reference type back to its original value type
- What is an assembly?
Show answer
A compiled .NET unit containing IL code and metadata