ExamGecko
Home Home / Google / Associate Android Developer

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

Question list
Search
Search

List of questions

Search

Related questions











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 (<selector> element )
A.
A State List (<selector> element )
Answers
B.
A Layer List (<layer-list> element) with items android:id="@+id/progress" and android:id="@+id/background" inside it.
B.
A Layer List (<layer-list> element) with items android:id="@+id/progress" and android:id="@+id/background" inside it.
Answers
C.
An <ImageView> element with android:id="@+id/progress" identifier
C.
An <ImageView> element with android:id="@+id/progress" identifier
Answers
Suggested answer: B

Explanation:

Reference:

https://developer.android.com/guide/topics/resources/drawable-resource

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:

A.
creates a single list item and reuses it for visible content.
A.
creates a single list item and reuses it for visible content.
Answers
B.
creates an unlimited number of list items and never reuses them
B.
creates an unlimited number of list items and never reuses them
Answers
C.
creates a limited number of list items and reuses them for visible content.
C.
creates a limited number of list items and reuses them for visible content.
Answers
D.
creates a single list item and never reuses it
D.
creates a single list item and never reuses it
Answers
Suggested answer: C

Explanation:

Reference:

https://developer.android.com/guide/topics/ui/layout/recyclerview

Android uses adapters (from the Adapter class) to connect data with View items in a list. There are many different kinds of adapters available, and you can also write custom adapters. To connect data with View items, the adapter needs to know about the View items. From what is extended the entity that is usually used in an adapter and describes a View item and its position within the RecyclerView?

A.
RecyclerView.AdapterDataObserver
A.
RecyclerView.AdapterDataObserver
Answers
B.
RecyclerView.ItemDecoration
B.
RecyclerView.ItemDecoration
Answers
C.
RecyclerView.ViewHolder
C.
RecyclerView.ViewHolder
Answers
D.
RecyclerViewAccessibilityDelegate
D.
RecyclerViewAccessibilityDelegate
Answers
Suggested answer: C

Explanation:

Reference:

https://developer.android.com/guide/topics/ui/layout/recyclerview

DRAG DROP

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


Question 124
Correct answer: Question 124

DRAG DROP

The diagram below shows a basic form of the recommended architecture for apps that use Architecture Components. The architecture consists of a UI controller, a ViewModel that serves LiveData, a Repository, and a Room database. Drag modules to correct places.


Question 125
Correct answer: Question 125

DRAG DROP

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


Question 126
Correct answer: Question 126

Explanation:

Videos:

Working with WorkManager, from the 2018 Android Dev Summit

WorkManager: Beyond the basics, from the 2019 Android Dev Summit

Reference:

https://developer.android.com/reference/androidx/work/WorkManager?hl=en


DRAG DROP

Move the major components of the Android platform to correct places in diagram.


Question 127
Correct answer: Question 127

Explanation:

Reference:

https://developer.android.com/guide/platform

DRAG DROP

In a common Paging Library architecture scheme, move instances to the correct positions.


Question 128
Correct answer: Question 128

Explanation:

Reference:

https://developer.android.com/topic/libraries/architecture/paging/ui


Total 128 questions
Go to page: of 13