ExamGecko
Home / Google / Associate Android Developer / List of questions
Ask Question

Google Associate Android Developer Practice Test - Questions Answers, Page 6

List of questions

Question 51

Report Export Collapse

SharedPreferences.Editor is an interface used for modifying values in a SharedPreferences object. All changes you make in an editor are batched, and not copied back to the original SharedPreferences until you call:

Become a Premium Member for full access
  Unlock Premium Member

Question 52

Report Export Collapse

SharedPreferences.Editor is an interface used for modifying values in a SharedPreferences object. To mark in the editor that a preference value should be removed, which will be done in the actual preferences once commit() or apply() is called, what method in SharedPreferences.Editor should we use?

Become a Premium Member for full access
  Unlock Premium Member

Question 53

Report Export Collapse

What is the incorrect statement about Data Access Object (androidx.room.Dao)?

Become a Premium Member for full access
  Unlock Premium Member

Question 54

Report Export Collapse

By adding a RoomDatabase.Callback to the room database builder RoomDatabase.Builder (method addCallback(RoomDatabase.Callback callback)), we can: (Choose two.)

Become a Premium Member for full access
  Unlock Premium Member

Question 55

Report Export Collapse

By executing an allowMainThreadQueries() method to the room database builder RoomDatabase.Builder, we can:

Become a Premium Member for full access
  Unlock Premium Member

Question 56

Report Export Collapse

Room can export your database's schema information into a JSON file at compile time. What annotation processor property you should set in your app/build.gradle file to export the schema?

Become a Premium Member for full access
  Unlock Premium Member

Question 57

Report Export Collapse

If you added to your build.gradle file a room.schemaLocation:

android { defaultConfig { javaCompileOptions { annotationProcessorOptions {

arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]

}

}

}}

Then, you build your app or module.

As a result you got a json file, with such path to it:

app/schemas/your_app_package/db_package/DbClass/DB_VERSION.json

What are the correct statements about this file? (Choose all that apply.)

Become a Premium Member for full access
  Unlock Premium Member

Question 58

Report Export Collapse

Select 3 major components of the Room. (Choose three.)

Become a Premium Member for full access
  Unlock Premium Member

Question 59

Report Export Collapse

A class that you create for managing multiple data sources. In addition to a Room database, this class could manage remote data sources such as a web server. It is about:

Become a Premium Member for full access
  Unlock Premium Member

Question 60

Report Export Collapse

@Query is the main annotation used in DAO classes. It allows you to perform read/write operations on a database. Each @Query method is verified at compile time, so what happens if there is a problem with the query?

Become a Premium Member for full access
  Unlock Premium Member
Total 128 questions
Go to page: of 13
Search

Related questions