Skip to main content
Journey Uncommon Logo
JourneyUncommon

C# Interview Questions (580 to practise)

C# is the .NET language for services, desktop apps and games. Its interviews go deep on value versus reference semantics.

Structs versus classes, boxing, async and await state machines, LINQ deferred execution, IDisposable, and nullable reference types.

Total questions
580
Easy
76
Medium
258
Hard
246

Where it shows up: Enterprise back ends on .NET, Unity game development, and Windows tooling.

Sample C# questions

Twenty real C# questions from the library, code snippet included. Nothing here is paraphrased for search engines. It is the same text a signed-in user sees.

Sign in to answer

Everything above is free to read. Answering needs a free account.

We keep the correct answer, the explanation and the scoring behind sign-in so the platform stays honest, which is why the answer options and the worked explanation for every C# question stay behind a free account. Signing in is free and takes a few seconds.

C# topics covered

49 distinct C# topics are tagged across the library. These are the real topic labels stored on the questions, not a hand-written list.

  • events and observer pattern (32)
  • IEnumerable vs IQueryable (26)
  • expression trees (22)
  • Span and Memory (22)
  • GC generations and LOH (22)
  • volatile and memory barriers (20)
  • the CLR and managed execution (19)
  • covariance and contravariance (18)
  • boxing and unboxing cost (18)
  • stackalloc and the stack (16)
  • extension methods (16)
  • finalization queue and GC.Collect (16)
  • custom equality IComparer (15)
  • deferred vs immediate LINQ (15)
  • reflection and attributes (15)
  • ThreadPool and work stealing (14)
  • yield return generators (14)
  • IDisposable and finalizers (14)
  • ref struct and ref returns (14)
  • ValueTask vs Task (13)
  • ConfigureAwait false (13)
  • IL and the JIT compiler (13)
  • delegates Func Action (12)
  • nullable reference types (12)
  • .NET memory model (12)
  • string interning and pooling (12)
  • ahead-of-time AOT compilation (12)
  • struct memory layout (11)
  • LINQ Where and Select (10)
  • dynamic and ExpandoObject (10)
  • source generators (10)
  • async/await state machine (9)
  • var and type inference (8)
  • the async/await state machine (8)
  • The .NET memory model (8)
  • value vs reference types (7)
  • async await basics (7)
  • exceptions try catch (6)
  • List and Dictionary (5)
  • foreach and iterators (4)
  • using statement and disposal (4)
  • properties and auto-properties (4)
  • string interpolation (3)
  • generics basics (3)
  • interfaces vs abstract classes (3)
  • pattern matching switch (3)
  • nullable types (2)
  • enum basics (2)
  • records vs classes (2)

Search and filter every C# question

Difficulty