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

62 Moderate LINQ .NET

What is AsEnumerable used for?

Short take Full answer on next page

Simple meaning

It switches from IQueryable to in-memory LINQ from that point.

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

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

What is FromSqlRaw safety rule?

Short take Full answer on next page

Simple meaning

Always parameterize user input.

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

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

How do you set secure cookie options?

Short take Full answer on next page

Simple meaning

HttpOnly, Secure, SameSite, and tight expiration.

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

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

What is antiforgery for JSON APIs?

Short take Full answer on next page

Simple meaning

Browser cookie sessions need antiforgery on state-changing calls.

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

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

What is a ValueTask?

Short take Full answer on next page

Simple meaning

It can avoid allocating a Task when results are often synchronous.

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

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

What is Join versus GroupJoin?

Short take Full answer on next page

Simple meaning

Join is inner join of matching pairs.

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

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

How do you compress responses?

Short take Full answer on next page

Simple meaning

UseResponseCompression with Brotli or Gzip for compressible MIME types.

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

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

How do you schedule background work?

Short take Full answer on next page

Simple meaning

IHostedService or BackgroundService for in-process jobs.

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

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

What is ExecuteUpdate?

Short take Full answer on next page

Simple meaning

It runs set-based updates without loading entities.

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

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

How do you rotate database credentials?

Short take Full answer on next page

Simple meaning

Update secrets store, recycle apps to pick new values, then retire old creds.

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

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

What is the N+1 problem in EF Core?

Short take Full answer on next page

Simple meaning

Loading a collection then querying each child lazily.

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

Read full answer Example · Mistake · Say this
79 Moderate DI .NET

Why avoid captive dependencies in .NET DI?

Short take Full answer on next page

Simple meaning

A singleton holding a scoped service outlives the scope and uses disposed objects.

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

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