Use Room for data persistence

  1. Which of the following is false about the @Query annotation?
  2. Which of the following are true about the DAO?

    Choose as many answers as you see fit.

  3. Why do you need to use the synchronized() function when creating the database?

    Choose as many answers as you see fit.

  4. Which of the following is false about the AppDatabase class?
  5. The @Insert and @Delete annotations can be used without providing a SQL statement.
  6. Which of the following is true about the ViewModel in an app using Room?

    Choose as many answers as you see fit.

  7. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    To handle conflicts when inserting into a database, you can pass an ___, such as IGNORE, to the @Insert annotation.

  8. The ViewModel factory is a class that inherits from ___ and is responsible for creating instances of the ViewModel class.
  9. True or False: In a Room app, the Application class allows other objects to access the AppDatabase class.