← All interview questions

Skill Zuno · skillzunos.com · Fullstack

.NET interview questions

Prepare for .NET interviews on Skill Zuno. This practice book covers .NET interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open .NET on Skill Zuno

Also see the .NET tutorial.

.NET is Microsoft's open-source, cross-platform developer platform for building web, desktop, mobile, cloud and console applications. Code in C#, F# or VB compiles to intermediate language that the Common Language Runtime runs with JIT compilation and garbage collection. .NET interviews cover the CLR, dependency injection, configuration, memory and async.

Sample .NET interview questions

What is the CLR?

The Common Language Runtime runs .NET programs. It loads assemblies, JIT-compiles their intermediate language to machine code, manages memory with a garbage collector, and enforces type safety and exception handling.

What are the three DI service lifetimes?

Transient creates a new instance every time it is requested. Scoped creates one per scope, which in ASP.NET Core means per HTTP request. Singleton creates one instance for the life of the application.

How does garbage collection work in .NET?

The GC is generational. New objects go in generation 0, which is collected often and cheaply; survivors are promoted to generations 1 and 2. Large objects go on a separate large object heap.

What is the difference between .NET Framework and .NET (Core)?

.NET Framework is Windows-only and in maintenance mode. Modern .NET, formerly .NET Core, is cross-platform, open source, faster and gets a new version every year.

What is the options pattern?

The options pattern binds a configuration section to a typed class, registered with services.Configure<T>(), and injects it as IOptions<T>, IOptionsSnapshot<T> or IOptionsMonitor<T> so code reads strongly typed settings.

What you can practice

  • .NET interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack topics alongside .NET on skillzunos.com

More Fullstack interview questions

All interview questions