QUESTION IMAGE
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
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
@Statekeyword is used for local state variables. It allows a view to have its own private state that can trigger a view update when changed.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- c. Controller
- b. ViewModel
- b. @State