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

41 Moderate C# .NET

What are expression-bodied members?

Short take Full answer on next page

Simple meaning

They let you write simple members with => instead of a block.

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

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

What is IAsyncEnumerable used for?

Short take Full answer on next page

Simple meaning

It streams async sequences with await foreach.

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

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

What does ConfigureAwait false mean?

Short take Full answer on next page

Simple meaning

It avoids capturing the SynchronizationContext after await.

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

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

How do you return ProblemDetails from an API?

Short take Full answer on next page

Simple meaning

I use Results.Problem or validation ProblemDetails for consistent error JSON.

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

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

What is endpoint routing?

Short take Full answer on next page

Simple meaning

It selects the endpoint first, then runs middleware that can see the chosen route.

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

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

How do you enable CORS for a SPA?

Short take Full answer on next page

Simple meaning

I add CORS policy with allowed origins, methods, and headers, then UseCors.

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

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

What is the change tracker?

Short take Full answer on next page

Simple meaning

It watches loaded entities for property changes and builds INSERT/UPDATE/DELETE on SaveChanges.

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

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

How do you handle concurrency tokens?

Short take Full answer on next page

Simple meaning

I mark a rowversion or token property and EF includes it in WHERE on update.

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

Read full answer Example · Mistake · Say this
52 Moderate Security .NET

What is data protection in ASP.NET Core?

Short take Full answer on next page

Simple meaning

It encrypts tokens, cookies, and antiforgery payloads with keys managed by the Data Protection API.

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

Read full answer Example · Mistake · Say this
53 Moderate Performance .NET

How do you reduce allocations in a hot .NET path?

Short take Full answer on next page

Simple meaning

I reuse buffers with ArrayPool, avoid boxing, prefer spans, and cut LINQ in tight loops.

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

Read full answer Example · Mistake · Say this
54 Moderate Logging .NET

What is structured logging with ILogger?

Short take Full answer on next page

Simple meaning

I log message templates with named placeholders so sinks index fields.

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

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

What are source generators used for?

Short take Full answer on next page

Simple meaning

They generate C# at compile time from analyzers.

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

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

What is health checks middleware?

Short take Full answer on next page

Simple meaning

Endpoints report if DB and dependencies are healthy for orchestrators.

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

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

What is owned entity type?

Short take Full answer on next page

Simple meaning

Owned types store related value objects in the same table or dependent table without their own identity key for domain use.

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

Read full answer Example · Mistake · Say this
59 Moderate Messaging .NET

What is the outbox pattern?

Short take Full answer on next page

Simple meaning

You write the business row and an outbox message in one transaction, then a relay publishes to the broker.

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

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

What is Channel<T> used for?

Short take Full answer on next page

Simple meaning

It is a high-performance producer/consumer queue for in-process async work.

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

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