Back to all roles

C# / .NET Developer Interview Questions

Core Overview

Prepare for C# and .NET Developer interviews covering C# language fundamentals, object-oriented programming, type semantics, collections, generics, LINQ, asynchronous programming, concurrency, memory management, ASP.NET Core, APIs, dependency injection, data access, testing, performance, and production .NET architecture.

Reviewed using official technical documentation.

Ready to test your knowledge?

Launch a focused practice session to review questions without distraction.

|
beginnerC# Fundamentals, Types & Object-Oriented Programming

What is the relationship between C#, .NET, compiled code, and the .NET runtime?

beginnerC# Fundamentals, Types & Object-Oriented Programming

What is the difference between value types and reference types in C#, and how does assignment behave for each?

intermediateC# Fundamentals, Types & Object-Oriented Programming

How do classes, interfaces, inheritance, polymorphism, and composition work together in C# object-oriented design?

intermediateC# Fundamentals, Types & Object-Oriented Programming

How do nullable reference types work in C#, and what is the difference between nullable annotations, null-state analysis, and runtime null checks?

intermediateC# Fundamentals, Types & Object-Oriented Programming

How do records, value equality, with expressions, and pattern matching support modern C# domain modeling?

advancedC# Fundamentals, Types & Object-Oriented Programming

How would you design a production C# domain model using classes, records, structs, interfaces, nullability, encapsulation, and pattern matching without overengineering it?

beginnerCollections, Generics, LINQ & Functional Patterns

When should a C# developer use List<T>, Dictionary<TKey,TValue>, or HashSet<T>?

beginnerCollections, Generics, LINQ & Functional Patterns

What are generics in C#, and why are type-parameter constraints useful?

intermediateCollections, Generics, LINQ & Functional Patterns

How do delegates, lambda expressions, Func, Action, and captured variables work in C#?

intermediateCollections, Generics, LINQ & Functional Patterns

What is deferred execution in LINQ, and why should developers understand materialization and repeated enumeration?

intermediateCollections, Generics, LINQ & Functional Patterns

What is the difference between LINQ over IEnumerable<T> and IQueryable<T>, and why does that distinction matter for query execution?

advancedCollections, Generics, LINQ & Functional Patterns

How would you design a high-throughput C# data-processing pipeline using collections, generics, LINQ, and functional techniques without creating unnecessary allocations or repeated work?

beginnerAsync Programming, Tasks, Concurrency & Memory Management

How do Task, async, and await work together in C# asynchronous programming?

beginnerAsync Programming, Tasks, Concurrency & Memory Management

How should CancellationToken and exception handling be used in asynchronous C# methods?

intermediateAsync Programming, Tasks, Concurrency & Memory Management

How does Task.WhenAll enable concurrent asynchronous work, and how does concurrency differ from CPU parallelism?

intermediateAsync Programming, Tasks, Concurrency & Memory Management

How should C# code protect shared mutable state using lock, synchronization primitives, and concurrent collections?

intermediateAsync Programming, Tasks, Concurrency & Memory Management

How do .NET garbage collection, IDisposable, using, and IAsyncDisposable differ in resource management?

advancedAsync Programming, Tasks, Concurrency & Memory Management

How would you design async execution, cancellation, concurrency limits, shared-state coordination, and resource lifetime for a high-throughput production .NET service?

beginnerASP.NET Core, APIs, Dependency Injection & Data Access

How does the ASP.NET Core request pipeline work, and why does middleware ordering matter?

beginnerASP.NET Core, APIs, Dependency Injection & Data Access

How do routing, endpoints, HTTP methods, status codes, and request models fit together in an ASP.NET Core API?

intermediateASP.NET Core, APIs, Dependency Injection & Data Access

How do transient, scoped, and singleton service lifetimes work in .NET dependency injection, and what problems can lifetime mismatches cause?

intermediateASP.NET Core, APIs, Dependency Injection & Data Access

How should an ASP.NET Core application use configuration, the options pattern, and structured logging?

intermediateASP.NET Core, APIs, Dependency Injection & Data Access

How do DbContext, tracking versus no-tracking queries, SaveChanges, and transactions work in EF Core?

advancedASP.NET Core, APIs, Dependency Injection & Data Access

How would you design a production ASP.NET Core API with clear middleware, dependency injection, validation, EF Core, transactions, resilience, and observability boundaries?

beginnerTesting, Performance & Production .NET Architecture

What is the difference between a unit test and an integration test in a .NET application?

beginnerTesting, Performance & Production .NET Architecture

How does WebApplicationFactory<TEntryPoint> help test an ASP.NET Core application?

intermediateTesting, Performance & Production .NET Architecture

How should a developer investigate a .NET performance problem before changing application code?

intermediateTesting, Performance & Production .NET Architecture

How should an ASP.NET Core service use health checks, metrics, logs, and distributed tracing in production?

intermediateTesting, Performance & Production .NET Architecture

How should a production .NET service use retries, timeouts, rate limiting, and other resilience mechanisms safely?

advancedTesting, Performance & Production .NET Architecture

How would you design, validate, operate, and evolve a high-scale production .NET platform across APIs, workers, databases, external dependencies, and deployment environments?

Want to tailer your resume for C# / .NET Developer roles?

Import your resume, scan it for critical C# / .NET Developer keywords, and compare it against ATS standards instantly.