.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 High Memory .NET

What is garbage collection in .NET?

Short take Full answer on next page

Simple meaning

GC reclaims managed objects no longer referenced.

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

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

What is an interface in C#?

Short take Full answer on next page

Simple meaning

An interface defines a contract of members a type must implement.

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

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

What does the params keyword do?

Short take Full answer on next page

Simple meaning

It lets a method accept a variable number of arguments as an array.

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

Read full answer Example · Mistake · Say this
45 High ASP.NET .NET

What is dependency injection in ASP.NET Core?

Short take Full answer on next page

Simple meaning

The built-in container registers services with lifetimes: transient, scoped, singleton.

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

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

What is an enum in C# used for?

Short take Full answer on next page

Simple meaning

Enums give named integer constants for a closed set of values.

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 middleware in ASP.NET Core?

Short take Full answer on next page

Simple meaning

Middleware forms a pipeline that handles each HTTP request: logging, auth, routing, endpoints.

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

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

What is Entity Framework Core?

Short take Full answer on next page

Simple meaning

EF Core is an ORM that maps C# classes to tables and generates SQL.

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

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

What is appsettings.Development.json for?

Short take Full answer on next page

Simple meaning

It overrides base appsettings for the Development environment.

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

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

What does UseHttpsRedirection do?

Short take Full answer on next page

Simple meaning

It redirects HTTP requests to HTTPS.

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

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

What are file-scoped namespaces?

Short take Full answer on next page

Simple meaning

They wrap the whole file in a namespace without nested braces.

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

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

What is a primary constructor in modern C#?

Short take Full answer on next page

Simple meaning

It declares constructor parameters on the type itself and can capture them as fields.

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

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

How do required members work?

Short take Full answer on next page

Simple meaning

required forces object initializers or constructors to set those properties.

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

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

What is Interlocked used for?

Short take Full answer on next page

Simple meaning

It provides atomic increments and compare-exchange without a full lock.

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

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