.NET MVC track

ASP.NET MVC interview questions and answers

Panel-ready ASP.NET MVC questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

215 Qs
102 Easy MVC .NET MVC

What does RedirectToAction do?

Short take Full answer on next page

Simple meaning

It returns a 302 to another action using route values.

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

Read full answer Example · Mistake · Say this
103 Easy MVC .NET MVC

What is TempData used for?

Short take Full answer on next page

Simple meaning

It stores data for the next request, often after redirect.

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

Read full answer Example · Mistake · Say this
104 Easy Routing .NET MVC

What is a route constraint?

Short take Full answer on next page

Simple meaning

It limits a route parameter, like int or regex.

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

Read full answer Example · Mistake · Say this
105 Easy Views .NET MVC

What are tag helpers?

Short take Full answer on next page

Simple meaning

Server-side tags that emit HTML with C# binding, like asp-for.

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

Read full answer Example · Mistake · Say this
107 Easy Model Binding .NET MVC

What does [FromForm] mean?

Short take Full answer on next page

Simple meaning

It binds the parameter from form fields.

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

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

What does [AllowAnonymous] do?

Short take Full answer on next page

Simple meaning

It opts an action out of a controller-level Authorize.

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

Read full answer Example · Mistake · Say this
109 Easy Identity .NET MVC

What is UserManager responsible for?

Short take Full answer on next page

Simple meaning

Creating users, hashing passwords, and store operations.

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

Read full answer Example · Mistake · Say this
110 Easy Results .NET MVC

When do you return ContentResult?

Short take Full answer on next page

Simple meaning

For plain text or custom content types without a view.

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

Read full answer Example · Mistake · Say this
111 Moderate MVC .NET MVC

How do you implement PRG properly?

Short take Full answer on next page

Simple meaning

POST handles the write, then redirects to a GET that shows results.

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

Read full answer Example · Mistake · Say this
112 Moderate Routing .NET MVC

What is LinkGenerator used for?

Short take Full answer on next page

Simple meaning

It builds URLs from endpoint names outside views, like emails or services.

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

Read full answer Example · Mistake · Say this
113 Moderate Views .NET MVC

How do you share display templates?

Short take Full answer on next page

Simple meaning

Display and editor templates under DisplayTemplates folders render by type name.

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

Read full answer Example · Mistake · Say this
114 Moderate Forms .NET MVC

How do you upload multiple files?

Short take Full answer on next page

Simple meaning

IFormFileCollection or IEnumerable of IFormFile binds multi-file inputs.

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

Read full answer Example · Mistake · Say this
115 Moderate Model Binding .NET MVC

What is [BindNever]?

Short take Full answer on next page

Simple meaning

It blocks a property from binding, reducing overposting.

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

Read full answer Example · Mistake · Say this
118 Moderate Caching .NET MVC

What does ResponseCache attribute do?

Short take Full answer on next page

Simple meaning

It sets cache headers for the action output.

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

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

How do you enforce HTTPS only cookies?

Short take Full answer on next page

Simple meaning

Cookie SecurePolicy Always in production.

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

Read full answer Example · Mistake · Say this
120 Moderate Identity .NET MVC

How do you add roles to a user?

Short take Full answer on next page

Simple meaning

UserManager AddToRoleAsync after ensuring roles exist.

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

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