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

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


361 Students Passed

89% Average Score

96% Same Questions
Viewing page 1 out of 4 pages
Viewing questions 1-10 out of questions
Questions # 1:

The following code snippet shows an example of an Espresso test:

Options:

A.

@Rule

public void greeterSaysHello() {

onView(withId(R.id.name_field)).do(typeText("Steve"));

onView(withId(R.id.greet_button)).do(click());

onView(withText("Hello Steve!")).check(matches(isDisplayed()));

}

B.

@Test

public void greeterSaysHello() {

onView(withId(R.id.name_field)).perform(typeText("Steve"));

onView(withId(R.id.greet_button)).perform(click());

onView(withText("Hello Steve!")).check(matches(isDisplayed()));

}

C.

@Test

public void greeterSaysHello() {

onView(withId(R.id.name_field)).do(typeText("Steve"));

onView(withId(R.id.greet_button)).do(click());

onView(withText("Hello Steve!")).compare(matches(isDisplayed()));

}

Questions # 2:

If you want get a debuggable APK that people can install without adb, in Android Studio you can:

Options:

A.

Select your debug variant and click Build Bundle(s) / APK(s) > Build APK(s).

B.

Click the Run button from toolbar

C.

Select your debug variant and click Analyze APK.

Questions # 3:

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

Options:

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.

Questions # 4:

Custom duration in milliseconds as a parameter for the setDuration method is available when you are working with:

Options:

A.

Toast

B.

Snackbar

C.

for none of them

D.

for both of them

Questions # 5:

“Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy.” This can be done by calling method:

Options:

A.

findViewById

B.

setContentView

C.

setActionBar

D.

setContentTransitionManager

E.

setTheme

Questions # 6:

Content labels. What attribute to use to indicate that a View should act as a content label for another View?

Options:

A.

android:contentDescription

B.

android:hint

C.

android:labelFor

Questions # 7:

What method should we use with Notification.Builder to supply a PendingIntent to be sent when the notification is clicked?

Options:

A.

setContentInfo

B.

setContentIntent

C.

setDeleteIntent

Questions # 8:

Assume that an app includes a default set of graphics and two other sets of graphics, each optimized for a different device setup:

res/drawable/

Contains default graphics. res/drawable-small-land-stylus/

Contains graphics optimized for use with a device that expects input from a stylus and has a QVGA low- density screen in landscape orientation.

res/drawable-ja/

Contains graphics optimized for use with Japanese.

What happens if the app runs on a device that is configured to use Japanese and, at the same time, the device happens to be one that expects input from a stylus and has a QVGA low-density screen in landscape orientation?

Options:

A.

Android loads graphics from res/drawable/

B.

Android loads graphics from res/drawable-small-land-stylus/

C.

Android loads graphics from res/drawable-ja/

Questions # 9:

Assume that you have the following situation: The app code calls for R.string.text_a Three relevant resource files are available:

-res/values/strings.xml, which includes text_a in the app's default language, in this case English.

-res/values-mcc404/strings.xml, which includes text_a in the app's default language, in this case English.

-res/values-hi/strings.xml, which includes text_a in Hindi.

The app is running on a device that has the following configuration:

-The SIM card is connected to a mobile network in India (MCC 404).

-The language is set to Hindi (hi).

Which is the correct statement below?

Options:

A.

Android loads text_a from res/values/strings.xml (in English)

B.

Android loads text_a from res/values-mcc404/strings.xml (in English)

C.

Android loads text_a from res/values-hi/strings.xml (in Hindi)

Questions # 10:

Select a correct statement about PagedList.

Options:

A.

PagedList is content-mutable. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can change once loaded.

B.

PagedList is content-immutable. This means that, although new content can be loaded into an instance of PagedList, the loaded items themselves cannot change once loaded.

C.

PagedList is content-accidental. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can be changed to accidental values randomly.

Viewing page 1 out of 4 pages
Viewing questions 1-10 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.