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 # 21

When using an EditTexts or editable TextViews, or other editable View. What attribute to use to provide a content label for that View?

A.

android:contentDescription

B.

android:hint

C.

android:labelFor

Question # 22

In our TeaViewModel class, that extends ViewModel, we have such method:

public LiveData < Tea > getTea() { return mTea;

}

An observer in our Activity (type of mViewModel variable in example is TeaViewModel) is set in this way:

mViewModel.getTea().observe(this, this::displayTea);

What will be a correct displayTea method definition?

A.

private void displayTea()

B.

private void displayTea(Tea tea)

C.

private void displayTea(LiveData < Tea > )

D.

private void displayTea(LiveData < T > )

Question # 23

If constant LENGTH_INDEFINITE is used as a parameter for the setDuration method in Snackbar, what will happen?

A.

The Snackbar will be displayed for a short period of time.

B.

The Snackbar will be displayed for a long period of time.

C.

The Snackbar will be displayed for a very long period of time.

D.

The Snackbar will be displayed from the time that is shown until either it is dismissed, or another Snackbar is shown.

E.

The constant LENGTH_INDEFINITE is impossible parameter for the setDuration method in Snackbar

Question # 24

In a common Paging Library architecture scheme, move instances to the correct positions.

Question # 25

What happens when you create a DAO method and annotate it with @Insert?

Example:

@Dao

public interface MyDao {

@Insert(onConflict = OnConflictStrategy.REPLACE)

public void insertUsers(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 # 26

In application theme style, flag windowDrawsSystemBarBackgrounds ( < item name= " android:windowDrawsSystemBarBackgrounds " > ) indicates:

A.

whether this window should have an Action Bar in place of the usual title bar.

B.

whether there should be no title on this window.

C.

that this window should not be displayed at all.

D.

whether this is a floating window.

E.

whether this Window is responsible for drawing the background for the system bars.

Question # 27

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 # 28

If content in a PagedList updates, the PagedListAdapter object receives:

A.

only one item from PagedList that contains the updated information.

B.

one or more items from PagedList that contains the updated information.

C.

a completely new PagedList that contains the updated information.

Question # 29

Working with Custom View. Once you define the custom attributes, you can use them in layout XML files just like built-in attributes. The only difference is that your custom attributes belong to a different namespace. Instead of belonging to the http://schemas.android.com/apk/res/android namespace, they belong to:

Question # 30

With recommended app architecture. Fill the following diagram, which shows how all the modules usually should interact with one another after designing the app (drag modules to correct places).

Go to page: