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

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

Add to Whishlist

List of questions

Question 61

Report Export Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 62

Report Export Collapse

Select four different types of app components. (Choose four.)

Become a Premium Member for full access
  Unlock Premium Member

Question 63

Report Export Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 64

Report Export Collapse

By default, the notification's text content is truncated to fit one line. If you want your notification to be longer, for example, to create a larger text area, you can do it in this way:

Become a Premium Member for full access
  Unlock Premium Member

Question 65

Report Export Collapse

"workManager" is an instance of WorkManager. Select correct demonstration of WorkRequest cancellation:

Become a Premium Member for full access
  Unlock Premium Member

Question 66

Report Export Collapse

In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if you are implementing a custom slider bar that allows a user to select a numeric value by pressing the left or right arrows, your custom view should emit an event of type TYPE_VIEW_TEXT_CHANGED whenever the slider value changes. Which one of the following sample codes demonstrates the use of the sendAccessibilityEvent() method to report this event.

Become a Premium Member for full access
  Unlock Premium Member

Question 67

Report Export Collapse

The easiest way of adding menu items (to specify the options menu for an activity) is inflating an XML file into the Menu via MenuInflater. With menu_main.xml we can do it in this way:

Become a Premium Member for full access
  Unlock Premium Member

Question 68

Report Export Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 69

Report Export Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 70

Report Export Collapse

As an example. In an Activity we have our TimerViewModel object (extended ViewModel), named mTimerViewModel. mTimerViewModel.getTimer() method returns a LiveData<Long> value. What can be a correct way to set an observer to change UI in case if data was changed?

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

Related questions