All quizzes
Free quiz · 20 questions in the bank

Room quiz

Test your Room knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is a Room "Entity," typically a class annotated with `@Entity`?

Questions in this quiz
  1. What is a Room "Entity," typically a class annotated with `@Entity`?
  2. What does defining relationships between entities in Room (e.g. using `@Relation` or foreign keys) allow?
  3. Why does Room require an explicit "migration" strategy when the database schema version changes, e.g. adding a new column to an existing table?
  4. What problem does Room solve compared to using Android's raw SQLite APIs directly?
  5. What is a Room "DAO" (Data Access Object), typically an interface annotated with `@Dao`?
  6. How does Room typically integrate with Kotlin coroutines for asynchronous database access, e.g. a DAO method marked `suspend`?
  7. What does it mean for Room to be described as providing an "abstraction layer" over SQLite rather than being a completely separate database engine?
  8. What is a Room "TypeConverter," used via the `@TypeConverter` annotation?
  9. What does Room's support for returning `Flow` (or `LiveData`) from a DAO query method enable?
  10. Why does Room, by default, throw an exception if a DAO method that performs a database query is called directly on the main UI thread?
  11. What is a common architectural pattern for using Room within a larger Android app, particularly relating to a "single source of truth" for data?
  12. What is a Room "Database" class, typically an abstract class annotated with `@Database`?
Gaps to close?
Read the curated Room notes — core concepts, patterns, interview prep.
Room notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web