C# & .NET interview questions

Value vs reference types, async/await pitfalls, LINQ, dependency injection lifetimes, Entity Framework and ASP.NET Core.

Readiness: 0 of 9 nailed

How to use this page: 1. Read a question2. Type your answer3. Check with AI4. Open the model answer5. Timed drill when you’re 70% ready

Core C#

FoundationConcept

Value types vs reference types?

JuniorConcept

What does using do with IDisposable?

JuniorConcept

What are records in C#?

Async

Mid-levelIt’s broken: why?

Why is calling .Result on an async method dangerous?

ASP.NET Core

Mid-levelConcept

Transient vs Scoped vs Singleton in ASP.NET Core DI?

JuniorConcept

How does the ASP.NET Core middleware pipeline work?

LINQ

JuniorWrite it by hand

Get the top 3 customers by total order value using LINQ.

Mid-levelConcept

IEnumerable vs IQueryable?

Entity Framework

Mid-levelConcept

How do you make Entity Framework Core queries fast?

Also prepare