Spring Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Google Developers Certification Associate-Android-Developer Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam Associate-Android-Developer Premium Access

View all detail and faqs for the Associate-Android-Developer exam


656 Students Passed

96% Average Score

93% Same Questions
Viewing page 2 out of 4 pages
Viewing questions 11-20 out of questions
Questions # 11:

For example, we have a file in our raw folder app/src/main/res/raw/sample_teas.json. To get an

InputStream for reading it, from out Context context, we can do this:

Options:

A.

InputStream input = context.openRawResource(R.raw.sample_teas);

B.

InputStream input = context.getRawResource(R.raw.sample_teas);

C.

InputStream input = context.getResources().openRawResource(R.raw.sample_teas);

Questions # 12:

We have a custom view that extends android.widget.ProgressBar. Our progress bar is not touchable, focusable, etc.: it just shows progress. Style for our custom progress bar extends

“Widget.AppCompat.ProgressBar.Horizontal”. An item, named “progressDrawable”, in our style, is a xml file . What we usually can see as a main single element in this xml file:

Options:

A.

A State List ( element )

B.

A Layer List ( element) with items android:id="@+id/progress" and android:id="@+id/ background" inside it.

C.

An element with android:id="@+id/progress" identifier

Questions # 13:

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

Options:

A.

android:contentDescription

B.

android:hint

C.

android:labelFor

Questions # 14:

Working with Custom View. To define custom attributes, we can add resources to our project. It is customary to put these resources into a file:

Options:

A.

res/layout/attrs.xml

B.

res/values/attrs.xml

C.

res/raw/attrs.xml

D.

res/xml/attrs.xml

Questions # 15:

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

}

Options:

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.

Questions # 16:

Choose the most correct statement.

Options:

A.

Android is a closed source, Linux-based software stack created for a wide array of devices and form factors.

B.

Android is a closed source, Windows-based software stack created for a wide array of devices and form factors.

C.

Android is an open source, Linux-based software stack created for a wide array of devices and form factors.

D.

Android is an open source software stack created for a highly limited array of devices and form factors.

Questions # 17:

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:

Options:

A.

http://schemas.android.com/apk/res/[your package name]

B.

http://schemas.android.com/apk/[your package name]

C.

http://schemas.android.com/[your package name]

Questions # 18:

Under the hood WorkManager uses an underlying job dispatching service based on the following criteria. You need to move services to the correct places.

Question # 18

Options:

Questions # 19:

What is the placeholder tag used for?

Options:

A.

To mark text that should not be translated.

B.

To raise a translation priority to a higher level

C.

To raise a quantity of translations for the string

D.

To pick up and move sting translation from a different resource file

Questions # 20:

To automate UI tests with Android Studio, you implement your test code in a separate Android test folder. Folder could be named:

Options:

A.

app/androidTest/java

B.

app/src/androidTest/java

C.

app/java/androidTest

Viewing page 2 out of 4 pages
Viewing questions 11-20 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.