Languages & Frameworks

C# & .NET

6 practice questions. Free questions open a full answer guide; the rest unlock with Pro.

  • In C#, what does the async and await keyword pair actually do, and why is awaiting an I/O operation different from just blocking the thread? Intern level
  • In C#, what causes the classic async deadlock when you block on an async method with .Result or .Wait(), and how do you avoid it?Go Pro Mid level
  • In C#, what's the difference between a struct and a class, and how does that affect how they're stored and passed around?Go Pro Junior level
  • In C#, when would you implement IDisposable, and how does the using statement and the dispose pattern relate to garbage collection?Go Pro Mid level
  • In C#, what does async/await actually do, and why is calling .Result or .Wait() on an async method considered dangerous?Go Pro Junior level
  • In C#, what's the difference between a value type and a reference type, and how does that affect what happens when you assign one variable to another?Go Pro Intern level
Want questions matched to your role? Paste a job title, job description, or CV for a personalized set, or go Pro to unlock the full bank.