Saturday, January 6, 2018

Nitheen Kumar

MVC .Net Common Interview Questions and Answers

 
  1. What is MVC (Model view controller)?
  2. Explain MVC application life cycle?
  3. Is MVC suitable for both Windows and web applications?
  4. What are the benefits of using MVC?
  5. Is MVC different from a three layered architecture?
  6. What is the latest version of MVC?
  7. What is the difference between each version of MVC 2, 3 , 4, 5 and 6?
  8. What are HTML helpers in MVC?
  9. What is the difference between “HTML.TextBox” vs “HTML.TextBoxFor”?
  10. What is routing in MVC?
  11. Where is the route mapping code written?
  12. Can we map multiple URLs to the same action?
  13. Explain attribute based routing in MVC?
  14. What is the advantage of defining route structures in the code?
  15. How can we navigate from one view to other view using a hyperlink?
  16. How can we restrict MVC actions to be invoked only by GET or POST?
  17. How can we maintain sessions in MVC?
  18. What is the difference between tempdata, viewdata, and viewbag?
  19. What is difference between TempData and ViewData ?
  20. Does “TempData” preserve data in the next request also?
  21. What is the use of Keep and Peek in “TempData”?
  22. What are partial views in MVC?
  23. How do you create a partial view and consume it?
  24. How can we do validations in MVC?
  25. Can we display all errors in one go?
  26. How can we enable data annotation validation on the client side?
  27. What is Razor in MVC?
  28. Why Razor when we already have ASPX?
  29. So which is a better fit, Razor or ASPX?
  30. How can you do authentication and authorization in MVC?
  31. How to implement Windows authentication for MVC?
  32. How do you implement Forms authentication in MVC?
  33. How to implement AJAX in MVC
  34. What kind of events can be tracked in AJAX?
  35. What is the difference between ActionResult and ViewResult?
  36. What are the different types of results in MVC?
  37. What are ActionFilters in MVC?
  38. What are the different types of action filters?
  39. If we have multiple filters, what’s the sequence for execution?
  40. Can we create our own custom view engine using MVC?
  41. How to send result back in JSON format in MVC
  42. What is WebAPI?
  43. But WCF SOAP also does the same thing, so how does WebAPI differ?
  44. With WCF you can implement REST, so why WebAPI?
  45. How can we detect that a MVC controller is called by POST or GET?
  46. What is Bundling and Minification in MVC?
  47. How does bundling increase performance?
  48. How do we implement bundling in MVC?
  49. How can you test bundling in debug mode?
  50. Explain minification and how to implement it
  51. How do we implement minification?
  52. Explain Areas in MVC?
  53. Explain the concept of View Model in MVC?
  54. What kind of logic view model class will have?
  55. How can we use two ( multiple) models with a single view?
  56. Explain the need of display mode in MVC?
  57. Explain MVC model binders?
  58. Explain the concept of MVC Scaffolding?
  59. What does scaffolding use internally to connect to database?
  60. How can we do exception handling in MVC?
Subscribe to get more Posts :