ASP.NET MVC Interview questions and answers
1.What is MVC?
A design pattern model-view-controller.
- The Model represents the application core (for instance a list of database records).
- The View displays the data (the database records).
- The Controller handles the input (to the database records).
- The business layer (Model logic)
- The display layer (View logic)
- The input control (Controller logic)
The Model is the part of the application that handles the logic for the application data.
- Often model objects retrieve data (and store data) from a database.
- The View is the part of the application that handles the display of the data.
- Most often the views are created from the model data.
- The Controller is the part of the application that handles user interaction.
- Typically controllers read data from a view, control user input, and send input data to the model
2.What are the advantages of MVC?
Multiple view support: Due to the separation of the model from the view, the user interface can display multiple views of the same data at the same time.
More Control: The ASP.NET MVC framework provides more control over HTML, JavaScript, and CSS than the traditional Web Forms.
Testability:ASP.NET MVC framework provides better testability of the Web Application and good support for test driven development too.
Lightweight:ASP.NET MVC framework doesn’t use View State and thus reduces the bandwidth of the requests to an extent.
Full features of ASP.NET: One of the key advantages of using ASP.NET MVC is that it is built on top of the ASP.NET framework and hence most of the features of the ASP.NET like membership providers, roles, etc can still be used.

0 Comments
If you have any doubts then let me know