Multiple Choice
What is demonstrated by the code below?
// RawDao.kt @Dao interface RawDao {
@RawQuery
fun getUserViaQuery(query: SupportSQLiteQuery?) : User?
}
// Usage of RawDao
...
val query =
SimpleSQLiteQuery("SELECT * FROM User WHERE id = ? LIMIT 1",
arrayOf<Any>(sortBy) )
val user = rawDao.getUserViaQuery(query)
...
A) A method in a Dao annotated class as a raw query method where you can pass the query as a SupportSQLiteQuery . A method in a Dao annotated class as a raw query method where you can pass the query as a SupportSQLiteQuery .
B) A method in a Dao annotated class as a query method.
C) A method in a RoomDatabase class as a query method. A method in a RoomDatabase class as a query method.
Correct Answer:

Verified
Correct Answer:
Verified
Q68: A class that you create for managing
Q69: For example, we have a file in
Q70: To run your local unit tests, follow
Q71: To run a debuggable build variant you
Q72: A content label sometimes depends on information
Q73: In our TeaViewModel class, that extends ViewModel
Q74: Which build options in the Build menu
Q75: If content in a PagedList updates, the
Q77: We have a custom view that extends
Q78: When using an EditTexts or editable TextViews,