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

215 Qs
163 Easy C# .NET

What does yield return create?

Short take

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
170 High EF Core .NET

How do you use compiled queries?

Short take

Simple meaning

EF.CompileQuery caches the translation for hot paths.

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

Read full answer Example · Mistake · Say this
173 High Performance .NET

When is System.IO.Pipelines worth it?

Short take

Simple meaning

High-throughput network parsers benefit from Pipelines buffer management.

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

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

What is nameof operator for?

Short take

Simple meaning

It returns a symbol name as a string that refactoring updates.

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

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

What is antiforgery for JSON APIs?

Short take

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
177 Easy EF Core .NET

What does Include do?

Short take

Simple meaning

It eager-loads related data in the query.

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

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

What is a ValueTask?

Short take

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
179 High Security .NET

How do you redact secrets in logs?

Short take

Simple meaning

I never log tokens, passwords, or full connection strings.

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

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

What is MapControllers?

Short take

Simple meaning

It maps attribute-routed controllers into the endpoint route table.

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

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