Question
1. Which of the following app architecture does not use Activity & Fragment as View layer? Select one: a. MVP pattern b. MVC pattern c.
1. Which of the following app architecture does not use Activity & Fragment as View layer?
Select one:
a. MVP pattern
b. MVC pattern
c. MVVM pattern
2. In MVVM architecture, in which layer you need to update the layout based on the current state of data?
Select one:
a. Model
b. ViewModel
c. Repository
d. View
3. Which of the following statement is false?
Select one:
a. When you create your own ViewModelFactory class, you need to implement "create" method
b. When you get a ViewModel from a View, you should always create a custom ViewModelFactory class so that ViewModelProvider knows how to create your ViewModel
c. If you try to create a ViewModel class that's not supported by the ViewModelFactory, the app will crash.
d. Getting a ViewModel object in a View (normally Activity or Fragment) is done by using ViewModelProvider class
e. When you create a ViewModel from a View, you should not directly create a ViewModel object through constructor (i.e. don't use "new ViewModel()")
4. Which of the following statement is not true about MVC architecture pattern
Select one:
a. This pattern exposes some issues while handling Android lifecycles
b. The MVC pattern makes use of Java/Kotlin interfaces to interact between each layer
c. MVC stands for Model - View - Controller
d. Controller contains the reference to both View and Model
e. It is not a recommended architecture pattern in Android 5. In MVVM architecture, in which layer you need to apply business logic to the data?
Select one:
a. View
b. ViewModel
c. Model
d. Repository
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started