Showing posts with label ASP.NET MVC. Show all posts
Showing posts with label ASP.NET MVC. Show all posts

Monday, December 31, 2018

ASP.NET MVC Interview Questions -- Part 3

ASP.NET MVC Interview Questions -- Part 3

  1. What are Validation Annotations?
  2. What is Data Annotation Validator Attributes in MVC?
  3. What is Validation Summary in MVC?
  4. What is the use of remote validation in MVC?
  5. Server Side Validation in MVC?
  6. How to make sure Client Validation is enabled in ASP.Net MVC?
  7. How to use Jquery Plugins in ASP.Net MVC validation?
  8. In Server how to check whether model has error or not in ASP.Net MVC?
  9. How can we create Custom Error Page in MVC?
  10. What is GET and POST Actions Types?
  11. How can we determine action invoked from HTTP GET or HTTP POST?
  12. Explain Test Driven Development (TDD) ?
  13. Why to use Html.Partial in MVC?
  14. What is Html.RenderPartial?
  15. What is RouteConfig.cs in MVC?
  16. What are Scaffold templates in MVC?
  17. Explain the concept of MVC Scaffolding?
  18. Explain the types of Scaffoldings.
  19. Can a view be shared across multiple controllers? If Yes, How we can do that?
  20. What are the components required to create a route in MVC?
  21. Why to use “{resource}.axd/{*pathInfo}” in routing in MVC?
  22. What are the two instances where routing is not implemented or required?
  23. What is Route Constraints in MVC?
  24. Can we add constraints to the route? If yes, explain how we can do it?
  25. What are the two ways to add constraints to a route?
  26. What are the possible Razor view extensions?
  27. What are the Main Razor Syntax Rules?
  28. What is PartialView in MVC?
  29. How do you create a partial view and consume it?
  30. What is the difference between View and Partial View?
  31. How we can add CSS in MVC?
  32. What is the use .Glimpse in MVC?
  33. What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
  34. Explain the need of display mode in MVC.
  35. What is Representational State Transfer (REST) mean?
  36. Explain the tools used for unit testing in ASP.Net MVC?
  37. What are the different Approach in MVC using Entity Framework?
  38. What is Database First Approach in MVC using Entity Framework?
  39. What are the Folders in MVC application solutions?
  40. What are the methods of handling an Error in MVC?
  41. How can maintain session in MVC?
                 Click Here for Part 1            Click Here for Part 2

ASP.NET MVC Interview Questions -- Part 2

ASP.NET MVC Interview Questions -- Part 2

  1. Explain Bundle.Config in MVC.
  2. What is Route in MVC?
  3. Where is the route mapping code written?
  4. What is Default Route in MVC?
  5. How route table has been created in ASP.NET MVC?
  6. Which are the important namespaces used in MVC?
  7. In which assembly is the MVC framework is defined?
  8. What is ViewData?
  9. What is the difference between ViewBag and ViewData in MVC?
  10. What is the difference between Temp data, View, and View Bag?
  11. How can we pass the data From Controller To View In MVC?
  12. Explain using hyperlink how you can navigate from one view to other view?
  13. Explain TempData in MVC?
  14. What is Area in ASP.Net MVC?
  15. How we can register the Area in ASP.Net MVC?
  16. What are HTML Helpers in MVC?
  17. What is the difference between “HTML.TextBox” and “HTML.TextBoxFor”?
  18. What are AJAX Helpers in MVC?
  19. What are the Exception filters in MVC?
  20. How we can handle the exception at controller level in ASP.Net MVC?
  21. How can we do exception handling in MVC?
  22. What are the options can be configured in AJAX helpers?
  23. What is Layout in MVC?
  24. Explain Sections is MVC?
  25. Explain RenderSection in MVC?
  26. Explain RenderBody and RenderPage in MVC?
  27. What is ViewStart Page in MVC?
  28. Explain the methods used to render the views in MVC?
  29. What are the sub types of ActionResult?
  30. What is the difference between "ActionResult" and "ViewResult" ?
  31. What are Non Action methods in MVC?
  32. How to change the action name in MVC?
  33. Explain Peek method in Tempdata in ASP.Net MVC?
  34. Explain Keep method in Tempdata in ASP.Net MVC?
  35. How do you implement Forms authentication in MVC?
  36. What are Code Blocks in Views?
  37. What is Output Caching in MVC?
  38. What are the locations for Output Caching?
  39. How we can multiple submit buttons in ASP.Net MVC?
  40. What is the “HelperPage.IsAjax” Property?
  41. How we can call a JavaScript function on the change of a Dropdown List in MVC?
                 Click Here for Part 1            Click Here for Part 3

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