.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.

24 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
25 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
27 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
30 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
32 High C# .NET

When would you use Span or Memory?

Short take Full answer on next page

Simple meaning

Span is a stack-only view over contiguous memory so I can slice arrays and strings without extra allocations.

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

Read full answer Example · Mistake · Say this
34 High EF Core .NET

How would you design a high-write EF Core path?

Short take Full answer on next page

Simple meaning

I keep the context short-lived, batch SaveChanges, disable tracking for reads, and consider ExecuteUpdate for bulk.

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

Read full answer Example · Mistake · Say this
38 Easy C# .NET

What are properties in C#?

Short take Full answer on next page

Simple meaning

Properties expose get and set accessors like fields but with control.

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

Read full answer Example · Mistake · Say this
39 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
40 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
Prev Page 2 of 11 Next
Chat with us