Kotlin Fundamentals: Repository and WorkManager Quiz

  1. Which component in the Android Architecture Components is responsible for keeping the offline cache up-to-date and getting data from the network?
  2. What is the best way to save structured data on the device file system for offline caching?
  3. The Transformations.map() converts one LiveData into another ___.
  4. When implementing offline caching, which one of the following strategies is a good example of the separation of concerns principle?
  5. Which of the following are concrete implementations of the WorkRequest class? Select all that apply.

    Choose as many answers as you see fit.

  6. Which of the following classes does the WorkManager use to schedule the background task on API 23 and higher?
  7. Which API do you use to add constraints to a WorkRequest?