ASP.NET MVC Interview Questions -- Part 1
The ASP.NET MVC is a web application framework developed by Microsoft, which implements the model–view–controller (MVC) pattern.
Based on ASP.NET, ASP.NET MVC allows software developers to build a web application as a composition of three roles: Model, View and Controller. The MVC model defines web applications with 3 logic layers:
- Model (business layer)
- View (display layer)
- Controller (input control)
- What is ASP.NET MVC?
- Explain Model, Controller and View in MVC?
- Define Controller in MVC?
- Explain Model in MVC?
- Explain View in MVC?
- Explain the page life cycle of MVC?
- Explain MVC application life cycle?
- Explain what are the steps for the execution of an MVC project?
- What are the advantages of MVC?
- What is Separation of Concerns in ASP.NET MVC?
- What is Razor View Engine?
- What is the meaning of Unobtrusive JavaScript?
- What is the use of ViewModel in MVC?
- Mention the advantages and disadvantages of MVC model?
- What you mean by Routing in MVC?
- What are the three segments for routing important?
- What are Actions in MVC?
- What is the importance of NonActionAttribute?
- How we can invoke child actions in ASP.Net MVC?
- What are Filters in MVC?
- Explain the role of "ActionFilters" in MVC?
- Mention some action filters which are used regularly in ASP.Net MVC?
- List out different return types of a controller action method?
- What are Action Filters in MVC?
- What "beforFilter()","beforeRender" and "afterFilter" functions do in Controller?
- What is the need of Action Filters in ASP.Net MVC?
- Explain the role of components Presentation, Abstraction and Control in MVC?
- What is Attribute Routing in MVC?
- How to enable Attribute Routing?
- Explain JSON Binding?
- What are Model Binders in ASP.Net MVC?
- Can I set the unlimited length for "maxJsonLength" property in config?
- What are child actions in ASP.Net MVC?
- What is JsonResultType in MVC?
- How to return the JSON from action method in ASP.Net MVC?
- How can I return string result from Action in ASP.Net MVC?
- Explain Dependency Resolution?
- What is Dependency Injection in ASP.Net MVC?
- Explain the advantages of Dependency Injection (DI) in ASP.Net MVC?
- Can I use Razor code in Javascript in ASP.Net MVC?
- What is Bundling and Minification in MVC?