ExamGecko
Home / Google / Associate Android Developer / List of questions
Ask Question

Google Associate Android Developer Practice Test - Questions Answers, Page 3

Add to Whishlist

List of questions

Question 21

Report Export Collapse

To automate UI tests with Android Studio, you implement your test code in a separate Android test folder. Folder could be named:

app/androidTest/java
app/androidTest/java
app/src/androidTest/java
app/src/androidTest/java
app/java/androidTest
app/java/androidTest
Suggested answer: B
asked 18/09/2024
Sharanjit Kareer
46 questions

Question 22

Report Export Collapse

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

click() : Clicks the center of the visible bounds of the UI element.
click() : Clicks the center of the visible bounds of the UI element.
touch() : Touch the center of the visible bounds of the UI element.
touch() : Touch the center of the visible bounds of the UI element.
dragTo() : Drags this object to arbitrary coordinates.
dragTo() : Drags this object to arbitrary coordinates.
moveTo() : Move this object to arbitrary coordinates.
moveTo() : Move this object to arbitrary coordinates.
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.
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.
swipeUp() : Performs the swipe up action on the UiObject. Similarly, the swipeDown(), swipeLeft(), and swipeRight() methods perform corresponding actions.
swipeUp() : Performs the swipe up action on the UiObject. Similarly, the swipeDown(), swipeLeft(), and swipeRight() methods perform corresponding actions.
Suggested answer: A, C, E, F
asked 18/09/2024
Pranoy Bej
40 questions

Question 23

Report Export Collapse

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

If more than one matching element is found, the first matching element in the layout hierarchy is returned as the target UiObject.
If more than one matching element is found, the first matching element in the layout hierarchy is returned as the target UiObject.
If no matching UI element is found, an IOException is thrown.
If no matching UI element is found, an IOException is thrown.
If more than one matching element is found, the last matching element in the layout hierarchy is returned as the target UiObject.
If more than one matching element is found, the last matching element in the layout hierarchy is returned as the target UiObject.
If no matching UI element is found, a UiAutomatorObjectNotFoundException is thrown.
If no matching UI element is found, a UiAutomatorObjectNotFoundException is thrown.
Suggested answer: A, D
asked 18/09/2024
Victor Chacon
42 questions

Question 24

Report Export Collapse

Each time your test invokes onView(), Espresso waits to perform the corresponding UI action or assertion until the following synchronization conditions are met: (Choose three.)

The message queue is empty.
The message queue is empty.
The message queue is not empty.
The message queue is not empty.
There are some instances of AsyncTask currently executing a task.
There are some instances of AsyncTask currently executing a task.
There are no instances of AsyncTask currently executing a task.
There are no instances of AsyncTask currently executing a task.
Some developer-defined idling resources are not idle.
Some developer-defined idling resources are not idle.
All developer-defined idling res
All developer-defined idling res
Suggested answer: A, D, F
asked 18/09/2024
Mpho Ntshontsi
43 questions

Question 25

Report Export Collapse

To run your local unit tests, follow these steps:

Become a Premium Member for full access
  Unlock Premium Member

Question 26

Report Export Collapse

To create a basic JUnit 4 test class, create a class that contains one or more test methods. A test method begins with the specific annotation and contains the code to exercise and verify a single functionality in the component that you want to test. What is the annotation?

Become a Premium Member for full access
  Unlock Premium Member

Question 27

Report Export Collapse

Google Associate Android Developer image Question 27 27414 09182024191140000000

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

Become a Premium Member for full access
  Unlock Premium Member

Question 28

Report Export Collapse

Google Associate Android Developer image Question 28 27415 09182024191140000000

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 :

Become a Premium Member for full access
  Unlock Premium Member

Question 29

Report Export Collapse

Google Associate Android Developer image Question 29 27416 09182024191140000000

What is illustrated in the picture?

Become a Premium Member for full access
  Unlock Premium Member

Question 30

Report Export Collapse

Google Associate Android Developer image Question 30 27417 09182024191140000000

What is illustrated in the picture?

Become a Premium Member for full access
  Unlock Premium Member
Total 128 questions
Go to page: of 13
Search

Related questions