Use Room for data persistence

  1. Which of the following statements is not true about the @Query annotation?

  2. Which of the following statements are true about the DAO?

  3. The Database class, inheriting from the RoomDatabase class, is responsible for ___.

  4. The purpose of the DAO is to:

  5. Why do you need to use the synchronized() function when you create the database?

    Choose as many answers as you see fit.

  6. You can use the @Insert and @Delete annotations without providing a SQL statement.

  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 a(n) ___ parameter, such as IGNORE, to the @Insert annotation.

  8. Select all the statements that are true about the Database Inspector:

    Choose as many answers as you see fit.

  9. Entities represent individual data tables in the Room database.

  10. Which of the following statement is not true about the primary key: