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

61 Moderate Caching .NET MVC

How do you vary cache by Accept-Language?

Short take Full answer on next page

Simple meaning

VaryByHeader on language or use output cache policies keyed by culture.

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

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

How do you map a fallback SPA route in MVC?

Short take Full answer on next page

Simple meaning

MapFallbackToController or MapFallbackToFile for client routers.

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

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

How do you localize routes?

Short take Full answer on next page

Simple meaning

Culture in URL prefixes with routing constraints and link generation.

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

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

How do you post enums from dropdowns?

Short take Full answer on next page

Simple meaning

Option values are enum ints or names that bind to the enum property.

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

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

How do you cache authorization menus?

Short take Full answer on next page

Simple meaning

Cache by user id with short TTL and invalidate on role change.

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

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

How do you escape JSON inside a script tag?

Short take Full answer on next page

Simple meaning

I use a JSON serializer and proper encoding helper, never raw string concat.

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

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

How do you unit test route matching?

Short take Full answer on next page

Simple meaning

Use EndpointRouting or RouteCollection tests with mock HTTP context.

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

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

How do you validate file magic bytes?

Short take Full answer on next page

Simple meaning

Check content signatures, not only extensions.

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

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

How do you bind collections of inputs?

Short take Full answer on next page

Simple meaning

Name fields with indexers like Items[0].Name.

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

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

How do you customize claim types?

Short take Full answer on next page

Simple meaning

IUserClaimsPrincipalFactory adds claims at sign-in.

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

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