Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

in mvc, which part handles user interactions? a. model b. view c. contr…

Question

in mvc, which part handles user interactions?

a. model
b. view
c. controller
d. router
clear my choice

in mvvm, what converts data for the view?

a. model
b. viewmodel
c. controller
d. router
clear my choice

in swiftui, what keyword is used for local state variables?

a. @local
b. @state
c. @var
d. @binding
clear my choice

Explanation:

Brief Explanations
  • In MVC (Model - View - Controller), the Controller is responsible for handling user interactions. It receives user input, processes it, and updates the Model and View accordingly.
  • In MVVM (Model - View - ViewModel), the ViewModel converts data from the Model into a format that the View can easily consume.
  • In SwiftUI, the @State keyword is used for local state variables. It allows a view to have its own private state that can trigger a view update when changed.

Answer:

  1. c. Controller
  2. b. ViewModel
  3. b. @State