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

61 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
62 Moderate LINQ .NET

What is AsQueryable used for?

Short take Full answer on next page

Simple meaning

It treats an in-memory sequence as IQueryable so expression trees can be composed.

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

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

How do you return file downloads from an API?

Short take Full answer on next page

Simple meaning

I return FileStreamResult or Results.File with the right content type and content-disposition.

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

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

What is ExecuteUpdate and ExecuteDelete?

Short take Full answer on next page

Simple meaning

They run set-based updates and deletes without loading entities into memory.

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

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

What does Include and ThenInclude do?

Short take Full answer on next page

Simple meaning

They eager-load related data in one query.

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

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

How do you rotate Data Protection keys?

Short take Full answer on next page

Simple meaning

I store the key ring in a shared location and let new keys activate while old ones decrypt existing cookies.

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

Read full answer Example · Mistake · Say this
70 Moderate Testing .NET

What is Moq used for in .NET tests?

Short take Full answer on next page

Simple meaning

It creates stubs and verifies interactions on interfaces.

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

Read full answer Example · Mistake · Say this
71 Moderate Testing .NET

How do you test time-dependent code?

Short take Full answer on next page

Simple meaning

I inject an abstraction for UtcNow instead of DateTime.UtcNow directly.

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

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

What is log scoping in MEL?

Short take Full answer on next page

Simple meaning

BeginScope attaches properties to subsequent log calls in that block.

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

Read full answer Example · Mistake · Say this
76 High C# .NET

How do you implement a custom awaitable?

Short take Full answer on next page

Simple meaning

You need GetAwaiter returning something with IsCompleted, OnCompleted, and GetResult.

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

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

What is interception in EF Core used for?

Short take Full answer on next page

Simple meaning

SaveChanges and command interceptors add auditing, multi-tenant filters, or soft-delete stamps.

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

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