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

42 Easy LINQ .NET

What does SelectMany flatten?

Short take Full answer on next page

Simple meaning

It projects each element to a sequence and flattens the results into one sequence.

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

Read full answer Example · Mistake · Say this
43 Easy ASP.NET .NET

What is Kestrel?

Short take Full answer on next page

Simple meaning

Kestrel is the cross-platform web server built into ASP.NET Core.

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

Read full answer Example · Mistake · Say this
45 Easy EF Core .NET

What does AsNoTracking do?

Short take Full answer on next page

Simple meaning

It loads entities without change tracking, which is faster for read-only queries.

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

Read full answer Example · Mistake · Say this
46 Easy EF Core .NET

What is a migration in EF Core?

Short take Full answer on next page

Simple meaning

A migration is a versioned change to the database schema generated from the model.

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

Read full answer Example · Mistake · Say this
47 Easy DI .NET

What is the service locator anti-pattern?

Short take Full answer on next page

Simple meaning

Resolving services from a static container inside business code hides dependencies.

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

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

What is a record type good for?

Short take Full answer on next page

Simple meaning

Records give value-like equality and concise immutable models.

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

Read full answer Example · Mistake · Say this
55 Easy EF Core .NET

What is EnsureCreated versus migrations?

Short take Full answer on next page

Simple meaning

EnsureCreated builds schema from the model without migration history — fine for demos.

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

Read full answer Example · Mistake · Say this
57 Easy Security .NET

What is HTTPS redirection middleware?

Short take Full answer on next page

Simple meaning

It redirects HTTP to HTTPS so cookies and tokens stay safer.

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

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

What does yield return create?

Short take Full answer on next page

Simple meaning

It creates an iterator that produces values lazily.

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

Read full answer Example · Mistake · Say this
59 Easy ASP.NET .NET

What is UseStaticFiles for?

Short take Full answer on next page

Simple meaning

It serves wwwroot assets.

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