top of page

ASP.Net MVC Interview Questions: Inthis series of interview questions, we will see the question related to the Model, Views and Controller, Routing in MVC, the process of separation of concern and how it is useful in the applications, Engines used in ASP.net MVC, Why razor engine, what is scafolding options, auto generation of the code from Model, Views interaction, rendering in MVC, partialpage rendering scenarios etc.

1.What is MVC (Model view controller)?

2.Explain MVC application life cycle?

3.Is MVC suitable for both Windows and web applications?

4.What are the benefits of using MVC?

5.Is MVC different from a three layered architecture?

6.What is the latest version of MVC?

7.What is the difference between each version of MVC?

8.What are HTML helpers in MVC?

9.What is the difference between “HTML.TextBox” vs “HTML.TextBoxFor”?

10.What is routing in MVC?

11.Where is the route mapping code written?

12.Can we map multiple URLs to the same action?

13.How can we navigate from one view to other view using a hyperlink?

14.How can we restrict MVC actions to be invoked only by GET or POST?

15.How can we maintain sessions in MVC?

16.What is the difference between tempdata, viewdata, and viewbag?

17.What are partial views in MVC?

18.How do you create a partial view and consume it?

19.How can we do validations in MVC?

20.Can we display all errors in one go?

21.How can we enable data annotation validation on the client side?

22.What is Razor in MVC?

23.Why Razor when we already have ASPX?

24.So which is a better fit, Razor or ASPX?

25.How can you do authentication and authorization in MVC?

26.How to implement Windows authentication for MVC?

27.How do you implement Forms authentication in MVC?

28.How to implement AJAX in MVC

29.What kind of events can be tracked in AJAX?

30.What is the difference between ActionResult and ViewResult?

31.What are the different types of results in MVC?

32.What are ActionFilters in MVC?

33.Can we create our own custom view engine using MVC?

34.How to send result back in JSON format in MVC

35.What is WebAPI?

36.But WCF SOAP also does the same thing, so how does WebAPI differ?

37.With WCF you can implement REST, so why WebAPI?

38.How can we detect that a MVC controller is called by POST or GET?

39.What is Bundling and Minification in MVC?

40.How does bundling increase performance?

41.How do we implement bundling in MVC?

42.How can you test bundling in debug mode?

43.Explain minification and how to implement it

44.How do we implement minification?

45.Explain Areas in MVC?

46.Explain the concept of View Model in MVC?

47.What kind of logic view model class will have?

48.When I type return View() 

49.how does it know which view to return? 

50.Explain how to access Viewstate values of this page in the next page? 

51.What is significance of NonActionAttribute? 

52.What is an asynchronous controller in ASP.NET MVC? 

53.How will you call a JavaScript function on the change of dropdownlist in ASP.NET MVC? 

54.How CSRF attacks are avoided in ASP.NET MVC Framework? 

55.How to implement a Gridview in ASP.NET MVC? 

56.What are the different return type controllers action method supports in ASP.NET MVC? 

57.What are the enhancements ASP.NET MVC 3 provided compared to ASP.NET MVC 2? 

58.What is difference between ViewData and ViewBag in ASP.NET MVC? 

59.What are HTML Helpers in ASP.NET MVC? 

60.Can you describe different types of action filters in brief provided in ASP.NET MVC?

 

 

 

bottom of page