Home / CSE MCQs / MVVM ::

CSE MCQs :: MVVM

  1. In the following XAML example, in which color will the text appear to the user?
  2. A.
    Red
    B.
    Default text color
    C.
    Green
    D.
    Black

  3. What are the disadvantages of Mvvm?
  4. A.
    Some people think that for simple UI, MVVM can be an overkill
    B.
    Similarly in bigger cases, it can be hard to design the ViewModel
    C.
    Debugging would be a bit difficult when we have complex data bindings
    D.
    All the above mentioned

  5. What is ICommand?
  6. A.
    CanExecute
    B.
    Execute
    C.
    CanExecutehanged
    D.
    All of the above

  7. What are the elements of MVVM?
  8. A.
    Model
    B.
    View
    C.
    View model
    D.
    All of these

  9. What are advantages of MVVM over MVC?
  10. A.
    Blendability
    B.
    Lookless
    C.
    Testability
    D.
    All the above mentioned

  11. What are the responsibilities of model?
  12. A.
    It is composed of objects with properties and some variables to contain data in memory
    B.
    Some of those properties may have reference to other model objects and create the object graph which as a whole is the model objects
    C.
    Model objects should raise property change notifications
    D.
    All the Above

  13. What are the ways used to construct views?
  14. A.
    View First Construction in XAML
    B.
    View First Construction in Code-behind
    C.
    Both A and B
    D.
    None

  15. What are the benefits of MVVM?
  16. A.
    Application is easier to maintain and extend
    B.
    Application is easier to unit test
    C.
    Both A and B
    D.
    None

  17. What are popular MVVM frameworks?
  18. A.
    Prism
    B.
    MVVM Light
    C.
    Caliburn Micro
    D.
    All of these

  19. MVVM is incorporated with the
  20. A.
    Windows Presentation Foundation (WPF)
    B.
    WSD
    C.
    Both A and B
    D.
    None