Home / CSE MCQs / MVC MCQs ::

CSE MCQs :: MVC MCQs

  1. FilterConfig.cs file is under in which App folder?
  2. A.
    App_Data
    B.
    App_Start
    C.
    Content
    D.
    Filters

  3. You are globalizing an application and are compiling a list of items that need to be translated. Which items should be included on the list?
  4. A.
    Images that are used as part of the menu structure
    B.
    The company logo
    C.
    Server error-logging messages
    D.
    Button tooltips
    E.
    Both A and D

  5. How can we add Series to MVC Charts?
  6. A.
    .AddSeries(chartType: "Bar", xValue: xValue, yValues: yValue)
    B.
    .AddSeries(chartType: "Bar", xValue = xValue, yValues = yValue)
    C.
    .AddSeries(chartType: "Bar", xValue: xValue, yValues: yValue)
    D.
    None

  7. Which is more faster between ASPX View Engine and Razor View Engine.
  8. A.
    ASPX View Engine
    B.
    Razor View Engine
    C.
    Both A & B
    D.
    None

  9. . . . . . helps you to maintain data when you move from controller to view.
  10. A.
    View Bag
    B.
    View Data
    C.
    Temp Data
    D.
    None of above

  11. In which format data can be return from XML into table?
  12. A.
    DataSet
    B.
    Datatable
    C.
    A and B
    D.
    None

  13. What is the extension of MVC view when using vb.net?
  14. A.
    cshtml
    B.
    vbhtml
    C.
    None
    D.
    Both A & B

  15. Which of the following methods are used to render partial view?
  16. A.
    Html.Partial()
    B.
    Html.RenderPartial()
    C.
    Html.RenderAction()
    D.
    All of the above

  17. How to check all errors of Model using ASP.Net MVC?
  18. A.
    var errors = Model.Values.SelectMany(v => v.Errors)
    B.
    var errors = ModelState.SelectMany(v => v.Errors)
    C.
    var errors = ModelState.Values.SelectMany(v => v.Errors)
    D.
    None

  19. MVC is composed of three components:
  20. A.
    Member Vertical Controller
    B.
    Model View Control
    C.
    Model View Controller
    D.
    Model Variable Centered