Google Associate-Android-Developer Associate Android Developer Exam Practice Test

Page: 1 / 14
Total 128 questions
Question 1

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



Answer : A, C, E, F


Question 2

LiveData.postValue() and LiveData.setValue() methods have some differences. So if you have a following code executed in the main thread:

liveData.postValue("a"); liveData.setValue("b");

What will be the correct statement?



Answer : B


Question 3

What statements about InputStreamReader (java.io.InputStreamReader) are correct? (Choose two.)



Answer : A, C


Question 4

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



Answer : A, B, C


Question 5

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



Answer : B


Question 6

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?



Answer : B


Question 7

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:



Answer : C


Page:    1 / 14   
Total 128 questions