Labour Day Special - 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: c4sdisc65

Associate-Android-Developer PDF

$38.5

$109.99

3 Months Free Update

  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions

Associate-Android-Developer PDF + Testing Engine

$61.6

$175.99

3 Months Free Update

  • Exam Name: Google Developers Certification - Associate Android Developer (Kotlin and Java Exam)
  • Last Update: Apr 28, 2024
  • Questions and Answers: 128
  • Free Real Questions Demo
  • Recommended by Industry Experts
  • Best Economical Package
  • Immediate Access

Associate-Android-Developer Engine

$46.2

$131.99

3 Months Free Update

  • Best Testing Engine
  • One Click installation
  • Recommended by Teachers
  • Easy to use
  • 3 Modes of Learning
  • State of Art Technology
  • 100% Real Questions included

Associate-Android-Developer Practice Exam Questions with Answers Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) Certification

Question # 6

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

public LiveData 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)

D.

private void displayTea(LiveData)

Full Access
Question # 7

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

Full Access
Question # 8

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:

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

Full Access
Question # 9

Relative positioning is one of the basic building blocks of creating layouts in ConstraintLayout. Constraints allow you to position a given widget relative to another one. What constraints do not exist?

A.

layout_constraintBottom_toBottomOf

B.

layout_constraintBaseline_toBaselineOf

C.

layout_constraintBaseline_toStartOf

D.

layout_constraintStart_toEndOf

Full Access
Question # 10

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

Associate-Android-Developer question answer

Full Access
Question # 11

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

...

Full Access
Question # 12

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

Full Access
Question # 13

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

A.

@Rule

fun 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

fun 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

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

}

Full Access
Question # 14

When your code execution reaches the breakpoint, Android Studio pauses execution of your app. You can

then use the tools in the Debugger tab to identify the state of the app. With Step Out Associate-Android-Developer question answer you can

A.

examine the object tree for a variable; expand it in the Variables view. If the Variables view is not visible

B.

evaluate an expression at the current execution point

C.

advance to the next line in the code (without entering a method)

D.

advance to the first line inside a method call

E.

advance to the next line outside the current method

F.

continue running the app normally

Full Access
Question # 15

Android Tests. You can use the childSelector() method to nest multiple UiSelector instances. For example, the following code example shows how your test might specify a search to find the first ListView in the currently displayed UI, then search within that ListView to find a UI element with the text property Apps.

What is the correct sample?

A.

val appItem: UiObject = device.findObject( UiSelector().className(ListView.class)

.instance(1)

.childSelector(

UiSelector().text("Apps")

)

)

B.

val appItem: UiObject = device.findObject( UiSelector().className("android.widget.ListView")

.instance(0)

.childSelector(

UiSelector().text("Apps")

)

)

C.

val appItem: UiObject = device.findObject( UiSelector().className("android.widget.ListView")

.instance(

UiSelector().text("Apps")

)

)

Full Access
Question # 16

In a class extended PreferenceFragmentCompat. What method is used to inflate the given XML resource and add the preference hierarchy to the current preference hierarchy?

A.

findPreference

B.

getPreferenceManager

C.

addPreferencesFromResource

D.

setPreferenceScreen

Full Access
Question # 17

For example, we have a BufferedReader reader, associated with the json file through

InputStreamReader. To get a file data we can do this:

A.

var line: String? try {

while (reader.readLine().also { line = it } != null) { builder.append(line)

}

val json = JSONObject(builder.toString())

return json

} catch (exception: IOException) {

exception.printStackTrace()

} catch (exception: JSONException) {

exception.printStackTrace()

}

B.

var line: JSONObject ? try {

while (reader.readJSONObject ().also { line = it } != null) {

builder.append(line)

}

val json = JSONObject(builder.toString())

return json

} catch (exception: IOException) {

exception.printStackTrace()

} catch (exception: JSONException) {

exception.printStackTrace()

}

C.

var line: String? try {

while (reader.readLine().also { line = it } != null) { builder.append(line)

}

val json = JSONObject(builder.toString())

return json

} catch (exception: RuntimeException) {

exception.printStackTrace()

} catch (exception: ArrayIndexOutOfBoundsException) {

exception.printStackTrace()

}

Full Access
Question # 18

About running a debuggable build variant. Usually, you can just select the default "debug" variant that's included in every Android Studio project (even though it's not visible in the build.gradle file). But if you define new build types that should be debuggable, you must add ‘debuggable true’ to the build type. Is that mostly true?

A.

Yes.

B.

No, if you define new build types that should be debuggable, you must add ‘debuggable false’

C.

No, the debug variant should be visible in the build.gradle file anyway.

Full Access
Question # 19

About queries in DAO classes. Room verifies the return value of the query such that if the name of the field in the returned object doesn't match the corresponding column names in the query response, Room alerts you in one of the following two ways: (Choose two.)

A.

It gives a warning if no field names match.

B.

It gives a warning if only some field names match.

C.

It gives an error if no field names match.

D.

It gives an error if only some field names match.

Full Access