Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Google Developers Certification - Associate Android Developer (Kotlin and Java Exam)

Last Update 10 hours ago Total Questions : 128

The Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) content is now fully updated, with all current exam questions added 10 hours ago. Deciding to include Associate-Android-Developer practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our Associate-Android-Developer exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these Associate-Android-Developer sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) practice test comfortably within the allotted time.

Question # 11

Select four different types of app components. (Choose four.)

A.

Application

B.

Layouts

C.

Activities

D.

Services

E.

AlarmManager

F.

WorkManager

G.

Broadcast receivers

Question # 12

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?

A.

room.expandProjection

B.

room.incremental

C.

room.schemaLocation

Question # 13

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

A.

@Entity

B.

@Query

C.

@RawQuery

D.

@DAO

E.

@WorkerThread

F.

@Database

Question # 14

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.)

A.

It’s a file with Room-exported schema

B.

Main JSONObject in this file usually should contain a number " formatVersion " and a JSONObject " database "

C.

The JSONObject " database " in this file usually should contain such objects, like " entities " , " views " , " setupQueries " , ets.

Question # 15

LiveData.postValue() and LiveData.setValue() methods have some differences. So if you have a following code executed in the main thread:

liveData.postValue( " a " ); liveData.setValue( " b " );

What will be the correct statement?

A.

The value " b " would be set at first and later the main thread would override it with the value " a " .

B.

The value " a " would be set at first and later the main thread would override it with the value " b " .

C.

The value " b " would be set at first and would not be overridden with the value " a " .

D.

The value " a " would be set at first and would not be overridden with the value " b " .

Question # 16

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.

B.

A method in a Dao annotated class as a query method.

C.

A method in a RoomDatabase class as a query method.

Question # 17

Filter logcat messages. If in the filter menu, a filter option “Edit Filter Configuration”? means:

A.

Display the messages produced by the app code only (the default). Logcat filters the log messages using the PID of the active app.

B.

Apply no filters. Logcat displays all log messages from the device, regardless of which process you selected.

C.

Create or modify a custom filter. For example, you could create a filter to view log messages from two apps at the same time.

Question # 18

To run your local unit tests, follow these steps:

1. Be sure your project is synchronized with Gradle by clicking Sync Project in the toolbar.

2. Run your test in one of the following ways (select possible): (Choose three.)

A.

To run a single test, open the Project window, and then right-click a test and click Run .

B.

To test all methods in a class, right-click a class or method in the test file and click Run .

C.

To run all tests in a directory, right-click on the directory and select Run tests .

D.

To run all tests in Project, open the Project window, and then right-click a test and click Run .

Question # 19

What do you want from Room when you create a DAO method and annotate it with @Delete?

Example:

@Dao

public interface MyDao {

@Delete

public void deleteUsers(User... users);

}

A.

Room generates an implementation that inserts all parameters into the database in a single transaction.

B.

Room modifies a set of entities, given as parameters, in the database. It uses a query that matches against the primary key of each entity.

C.

Room removes a set of entities, given as parameters, from the database. It uses the primary keys to find the entities to delete.

Question # 20

If no any folder like res/anim- < qualifiers > , res/drawable- < qualifiers > , res/layout- < qualifiers > , res/raw-

< qualifiers > , res/xml- < qualifiers > exist in the project. Which folders are required in the project anyway? (Choose two.)

A.

res/anim/

B.

res/drawable/

C.

res/layout/

D.

res/raw/

E.

res/xml/

Go to page: