Home / CSE MCQs / MVC MCQs ::

CSE MCQs :: MVC MCQs

  1. What are the various types of filters in an ASP.NET MVC application?
  2. A.
    Authorization filters
    B.
    Action filters
    C.
    Result filters
    D.
    All of these

  3. Which filter will be execute at last using ASP.Net MVC?
  4. A.
    Action filters
    B.
    Authorization filters
    C.
    Exception filters
    D.
    Response filters

  5. RedirectToAction() Method for which Status code represents?
  6. A.
    304
    B.
    302
    C.
    301
    D.
    300

  7. Which of the following view file types are supported in MVC?
  8. A.
    .cshtml
    B.
    .vbhtml
    C.
    .aspx
    D.
    All of the above

  9. Which of the following is TRUE?
  10. A.
    Action method can be static method in a controller class
    B.
    Action method can be private method in a controller class
    C.
    Action method can be protected method in a controller class
    D.
    Action method must be public method in a controller class

  11. For which ModelState.IsValid Validate?
  12. A.
    It checks for Entityframework Model state
    B.
    It checks for valid Model State using DataAnnotations
    C.
    It checks for SQL database state
    D.
    None

  13. In the model-view-controller (MVC) architecture, the model defines the
  14. A.
    Data-access layer
    B.
    Presentation layer
    C.
    Business-logic layer
    D.
    Interface layer

  15. Can we use view state in MVC?
  16. A.
    Yes
    B.
    No
    C.
    Both A & B
    D.
    None

  17. List out few different return types of a controller action method?
  18. A.
    View Result
    B.
    Javascript Result
    C.
    Redirect Result
    D.
    All of these

  19. Explain what are the steps for the execution of an MVC project?
  20. A.
    Receive first request for the application
    B.
    Performs routing
    C.
    Creates MVC request handler
    D.
    All of the above