Asp.Net MVC 5 Interview Questions Tutorial
MVC 5 Interview Questions and Answers - Basic/Fresher Level
Q. What is Asp.Net MVC?
A. Asp.net MVC 5 is a web application development framework. It follows the model-view-controller pattern, that's why it's called MVC.
Q. Explain the steps of request excution in the MVC 5?
A. Following are the steps by order executed for any request in MVC 5:
- Receive first request for the application
- Performs routing
- Creates MVC request handler
- Create Controller
- Execute Controller
- Invoke action
- Execute Result
Q. What is routing in MVC 5?
A. Routing helps to decide a URL structure and map the URL with the Controller and action methods.
Q. What is NonActionAttribute?
A. All public methods of a controller class are treated as the action method. if you want to any method not to be recognised as action method, then you can decorate it with NonActionAttribute.
Q. What is order of filter execution, if all filters are available?
A. Below is the filter execution order:
- Authorization filter
- Action filter
- Response filter
- Exception filter