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

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

Questions 4

In application theme style, flag windowNoTitle () indicates:

Options:

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.

Buy Now
Questions 5

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

}

Buy Now
Questions 6

Custom views and directional controller clicks. On most devices, clicking a view using a directional controller sends (to the view currently in focus) a KeyEvent with:

Options:

A.

KEYCODE_DPAD_CENTER

B.

KEYCODE_BUTTON_START

C.

KEYCODE_CALL

D.

KEYCODE_BUTTON_SELECT

Buy Now
Questions 7

RecyclerView is a subclass of ViewGroup and is a more resource-efficient way to display scrollable lists. Instead of creating a View for each item that may or may not be visible on the screen, RecyclerView:

Options:

A.

creates a single list item and reuses it for visible content.

B.

creates an unlimited number of list items and never reuses them

C.

creates a limited number of list items and reuses them for visible content.

D.

creates a single list item and never reuses it

Buy Now
Questions 8

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

Associate-Android-Developer Question 8

Options:

Buy Now
Questions 9

SharedPreferences.Editor is an interface used for modifying values in a SharedPreferences object. All changes you make in an editor are batched, and not copied back to the original SharedPreferences until you call:

Options:

A.

commit()

B.

apply()

C.

commit() or apply()

Buy Now
Questions 10

Building your app from the command line, if you have a "demo" product flavor, then you can build the debug version with the command:

Options:

A.

gradlew assembleDemoDebug

B.

gradlew installDemoDebug

C.

both variants are correct.

Buy Now
Questions 11

Select 3 major components of the Room. (Choose three.)

Options:

A.

@Entity

B.

@Query

C.

@RawQuery

D.

@DAO

E.

@WorkerThread

F.

@Database

Buy Now
Questions 12

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

Options:

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 13

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

Buy Now
Questions 14

Once your test has obtained a UiObject object, you can call the methods in the UiObject class to perform user interactions on the UI component represented by that object. You can specify such actions as: (Choose four.)

Options:

A.

click() : Clicks the center of the visible bounds of the UI element.

B.

touch() : Touch the center of the visible bounds of the UI element.

C.

dragTo() : Drags this object to arbitrary coordinates.

D.

moveTo() : Move this object to arbitrary coordinates.

E.

setText() : Sets the text in an editable field, after clearing the field's content. Conversely, the

clearTextField() method clears the existing text in an editable field.

F.

swipeUp() : Performs the swipe up action on the UiObject. Similarly, the swipeDown(), swipeLeft(), and swipeRight() methods perform corresponding actions.

Buy Now
Questions 15

To run your local unit tests, follow these steps:

1.Be sure your project is synchronized with Gradle by clicking Sync Project in the toolbar.

2.Run your test in one of the following ways (select possible): (Choose three.)

Options:

A.

To run a single test, open the Project window, and then right-click a test and click Run.

B.

To test all methods in a class, right-click a class or method in the test file and click Run.

C.

To run all tests in a directory, right-click on the directory and select Run tests.

D.

To run all tests in Project, open the Project window, and then right-click a test and click Run.

Buy Now
Questions 16

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 Evaluate Expression Associate-Android-Developer Question 16 you can

Options:

A.

examine the object tree for a variable; expand it in the Variables view

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

Buy Now
Questions 17

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?

Options:

A.

findPreference

B.

getPreferenceManager

C.

addPreferencesFromResource

D.

setPreferenceScreen

Buy Now
Questions 18

Associate-Android-Developer Question 18

The Testing Pyramid, shown in the Figure, illustrates how your app should include the three categories of tests: small, medium, and large. Small tests are unit tests that :

Options:

A.

validate your app's behavior one class at a time.

B.

validate either interactions between levels of the stack within a module, or interactions between related modules.

C.

validate user journeys spanning multiple modules of your app.

Buy Now
Exam Name: Google Developers Certification - Associate Android Developer (Kotlin and Java Exam)
Last Update: May 3, 2024
Questions: 128

PDF + Testing Engine

$56  $159.99

Testing Engine

$42  $119.99
buy now Associate-Android-Developer testing engine

PDF (Q&A)

$35  $99.99
buy now Associate-Android-Developer pdf
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 03 May 2024