Leads4pass > Google > Google Certifications > ASSOCIATE-ANDROID-DEVELOPER > ASSOCIATE-ANDROID-DEVELOPER Online Practice Questions and Answers

ASSOCIATE-ANDROID-DEVELOPER Online Practice Questions and Answers

Questions 4

What is a correct part of an Implicit Intent for sharing data implementation?

A. val sendIntent = Intent(this, UploadService::class.java).apply { putExtra(Intent.EXTRA_TEXT, textMessage) ...

B. val sendIntent = Intent().apply { type = Intent.ACTION_SEND; ...

C. val sendIntent = Intent(this, UploadService::class.java).apply { data = Uri.parse(fileUrl) ...

D. val sendIntent = Intent().apply { action = Intent.ACTION_SEND ...

Buy Now
Questions 5

If you want to access a specific UI component in an app, use the UiSelector class. This class represents a query for specific elements in the currently displayed UI. What is correct about it? (Choose two.)

A. If more than one matching element is found, the first matching element in the layout hierarchy is returned as the target UiObject.

B. If no matching UI element is found, an IOException is thrown.

C. If more than one matching element is found, the last matching element in the layout hierarchy is returned as the target UiObject.

D. If no matching UI element is found, a UiAutomatorObjectNotFoundException is thrown.

Buy Now
Questions 6

What is illustrated in the picture?

A. Logcat window with filter settings

B. Debugging native code using LLDB

C. The Variables and Watches panes in the Debugger window

D. The Breakpoints window lists all the current breakpoints and includes behavior settings for each

E. Adding a watchpoint to a variable in memory

Buy Now
Questions 7

To run a debuggable build variant you must use a build variant that includes

A. minifyEnabled false in the build configuration

B. debuggable true or debuggable false in the build configuration

C. debuggable true in the build configuration

Buy Now
Questions 8

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

A. set the database factory

B. handle database first time creation

C. handle database opening

D. disable the main thread query check for Room

Buy Now
Questions 9

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:

A. Activity/Fragment

B. ViewModel

C. Repository

D. Room database

Buy Now
Questions 10

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

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

}

Buy Now
Questions 11

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

Buy Now
Questions 12

What is the placeholder tag used for?

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

Buy Now
Questions 13

A content label sometimes depends on information only available at runtime, or the meaning of a View might change over time. For example, a Play button might change to a Pause button during music playback. In these cases, to update the content label at the appropriate time, we can use:

A. View#setContentDescription(int contentDescriptionResId)

B. View#setContentLabel(int contentDescriptionResId)

C. View#setContentDescription(CharSequence contentDescription)

D. View#setContentLabel(CharSequence contentDescription)

Buy Now
Exam Name: Google Developers Certification - Associate Android Developer (Kotlin and Java Exam)
Last Update: Dec 18, 2024
Questions: 128
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99