Architecture components

  1. Which of the following are reasons to use a ViewModel?

    Choose as many answers as you see fit.

  2. A ViewModel is destroyed after which of the following ?
  3. True or False: You should execute time-consuming tasks and I/O requests in your Activity/Fragment.
  4. Why should you initialize and store LiveData in your ViewModel instead of a UI Controller?
  5. observe allows you to do which of the following for changes?
  6. True or False: It’s OK for a ViewModel to directly reference a View or LifecycleOwner class.