.NET track

.NET and C# interview questions

Panel-ready .NET / C# questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

4 Moderate EF Core .NET

What is change tracking in EF Core?

Short take Full answer on next page

Simple meaning

The context snapshots entity instances and generates INSERT, UPDATE, or DELETE on SaveChanges.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
5 Moderate EF Core .NET

How do you avoid the N+1 query problem?

Short take Full answer on next page

Simple meaning

I Include the navigation I need, or project to an anonymous type or DTO in one Select.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
7 Moderate C# .NET

What are records in C#?

Short take Full answer on next page

Simple meaning

Records are reference types with value-based equality and a concise init syntax.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
10 Moderate Memory .NET

What is a memory leak in a garbage-collected language?

Short take Full answer on next page

Simple meaning

The GC frees unreachable objects, but event handlers, static caches, and forgotten subscriptions keep objects reachable.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
11 Moderate C# .NET

What is async await in C#?

Short take Full answer on next page

Simple meaning

Async await frees threads while waiting on I/O without blocking.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
12 Moderate CLR .NET

What is the CLR?

Short take Full answer on next page

Simple meaning

The Common Language Runtime runs .NET bytecode, handles memory with GC, and provides security and type safety.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
13 Moderate OOP .NET

What is an interface in C#?

Short take Full answer on next page

Simple meaning

An interface defines a contract of members a type must implement.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
14 Moderate ASP.NET .NET

What is middleware in ASP.NET Core?

Short take Full answer on next page

Simple meaning

Middleware forms a pipeline that handles each HTTP request: logging, auth, routing, endpoints.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
15 Moderate C# .NET

What are file-scoped namespaces?

Short take Full answer on next page

Simple meaning

They wrap the whole file in a namespace without nested braces.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
16 Moderate C# .NET

What is a primary constructor in modern C#?

Short take Full answer on next page

Simple meaning

It declares constructor parameters on the type itself and can capture them as fields.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
17 Moderate C# .NET

How do required members work?

Short take Full answer on next page

Simple meaning

required forces object initializers or constructors to set those properties.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
18 Moderate C# .NET

What is Interlocked used for?

Short take Full answer on next page

Simple meaning

It provides atomic increments and compare-exchange without a full lock.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
20 Moderate Collections .NET

What is ConcurrentDictionary good for?

Short take Full answer on next page

Simple meaning

Thread-safe dictionary operations without a coarse lock for every access.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Page 1 of 4 Next
Chat with us