Monday, December 31, 2018

ASP.NET MVC Interview Questions -- Part 1

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)

  1. What is ASP.NET MVC?
  2. Explain Model, Controller and View in MVC?
  3. Define Controller in MVC?
  4. Explain Model in MVC?
  5. Explain View in MVC?
  6. Explain the page life cycle of MVC?
  7. Explain MVC application life cycle?
  8. Explain what are the steps for the execution of an MVC project?
  9. What are the advantages of MVC?
  10. What is Separation of Concerns in ASP.NET MVC?
  11. What is Razor View Engine?
  12. What is the meaning of Unobtrusive JavaScript?
  13. What is the use of ViewModel in MVC?
  14. Mention the advantages and disadvantages of MVC model?
  15. What you mean by Routing in MVC?
  16. What are the three segments for routing important?
  17. What are Actions in MVC?
  18. What is the importance of NonActionAttribute?
  19. How we can invoke child actions in ASP.Net MVC?
  20. What are Filters in MVC?
  21. Explain the role of "ActionFilters" in MVC?
  22. Mention some action filters which are used regularly in ASP.Net MVC?
  23. List out different return types of a controller action method?
  24. What are Action Filters in MVC?
  25. What "beforFilter()","beforeRender" and "afterFilter" functions do in Controller?
  26. What is the need of Action Filters in ASP.Net MVC?
  27. Explain the role of components Presentation, Abstraction and Control in MVC?
  28. What is Attribute Routing in MVC?
  29. How to enable Attribute Routing?
  30. Explain JSON Binding?
  31. What are Model Binders in ASP.Net MVC?
  32. Can I set the unlimited length for "maxJsonLength" property in config?
  33. What are child actions in ASP.Net MVC?
  34. What is JsonResultType in MVC?
  35. How to return the JSON from action method in ASP.Net MVC?
  36. How can I return string result from Action in ASP.Net MVC?
  37. Explain Dependency Resolution?
  38. What is Dependency Injection in ASP.Net MVC?
  39. Explain the advantages of Dependency Injection (DI) in ASP.Net MVC?
  40. Can I use Razor code in Javascript in ASP.Net MVC?
  41. What is Bundling and Minification in MVC?
                 Click Here for Part 2            Click Here for Part 3

No comments:

Post a Comment