ExamGecko
Home Home / Google / Associate Android Developer

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

Question list
Search
Search

List of questions

Search

Related questions











Custom views and directional controller clicks. In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if a text value was changed in your custom view, you should emit an event of this type:

A.
TYPE_WINDOWS_CHANGED
A.
TYPE_WINDOWS_CHANGED
Answers
B.
TYPE_VIEW_CONTEXT_CLICKED
B.
TYPE_VIEW_CONTEXT_CLICKED
Answers
C.
TYPE_WINDOWS_CHANGED
C.
TYPE_WINDOWS_CHANGED
Answers
D.
TYPE_VIEW_TEXT_CHANGED
D.
TYPE_VIEW_TEXT_CHANGED
Answers
Suggested answer: D

Explanation:

Reference:

https://developer.android.com/guide/topics/ui/accessibility/custom-views

Select a correct statement about PagedList.

A.
PagedList is content-mutable. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can change once loaded.
A.
PagedList is content-mutable. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can change once loaded.
Answers
B.
PagedList is content-immutable. This means that, although new content can be loaded into an instance of PagedList, the loaded items themselves cannot change once loaded.
B.
PagedList is content-immutable. This means that, although new content can be loaded into an instance of PagedList, the loaded items themselves cannot change once loaded.
Answers
C.
PagedList is content-accidental. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can be changed to accidental values randomly.
C.
PagedList is content-accidental. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can be changed to accidental values randomly.
Answers
Suggested answer: B

Explanation:

Reference:

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

If content in a PagedList updates, the PagedListAdapter object receives:

A.
only one item from PagedList that contains the updated information.
A.
only one item from PagedList that contains the updated information.
Answers
B.
one or more items from PagedList that contains the updated information.
B.
one or more items from PagedList that contains the updated information.
Answers
C.
a completely new PagedList that contains the updated information.
C.
a completely new PagedList that contains the updated information.
Answers
Suggested answer: C

Explanation:

Reference:

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

Relative positioning is one of the basic building blocks of creating layouts in ConstraintLayout. Constraints allow you to position a given widget relative to another one. What constraints do not exist?

A.
layout_constraintBottom_toBottomOf
A.
layout_constraintBottom_toBottomOf
Answers
B.
layout_constraintBaseline_toBaselineOf
B.
layout_constraintBaseline_toBaselineOf
Answers
C.
layout_constraintBaseline_toStartOf
C.
layout_constraintBaseline_toStartOf
Answers
D.
layout_constraintStart_toEndOf
D.
layout_constraintStart_toEndOf
Answers
Suggested answer: C

Explanation:

Reference:

https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout

Which statement is most true about layout_constraintLeft_toRightOf and layout_constraintStart_toEndOf constraints ?

A.
layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in any case
A.
layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in any case
Answers
B.
layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in case if user choose a language that uses right-to-left (RTL) scripts, such as Arabic or Hebrew, for their UI locale
B.
layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in case if user choose a language that uses right-to-left (RTL) scripts, such as Arabic or Hebrew, for their UI locale
Answers
C.
layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in case if user choose a language that uses left-to-right (LTR) scripts, such as English or French, for their UI locale
C.
layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in case if user choose a language that uses left-to-right (LTR) scripts, such as English or French, for their UI locale
Answers
D.
layout_constraintLeft_toRightOf works with horizontal axes and layout_constraintStart_toEndOf works with vertical axes
D.
layout_constraintLeft_toRightOf works with horizontal axes and layout_constraintStart_toEndOf works with vertical axes
Answers
Suggested answer: C

Explanation:

Reference:

https://developer.android.com/training/basics/supporting-devices/languages

In application theme style, flag windowNoTitle (<item name="windowNoTitle">) indicates:

A.
whether this window should have an Action Bar in place of the usual title bar.
A.
whether this window should have an Action Bar in place of the usual title bar.
Answers
B.
whether there should be no title on this window.
B.
whether there should be no title on this window.
Answers
C.
that this window should not be displayed at all.
C.
that this window should not be displayed at all.
Answers
D.
whether this is a floating window.
D.
whether this is a floating window.
Answers
E.
whether this Window is responsible for drawing the background for the system bars.
E.
whether this Window is responsible for drawing the background for the system bars.
Answers
Suggested answer: B

Explanation:

Reference:

https://developer.android.com/guide/topics/ui/look-and-feel/themes https://developer.android.com/reference/android/R.styleable.html

"Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy." This can be done by calling method:

A.
findViewById
A.
findViewById
Answers
B.
setContentView
B.
setContentView
Answers
C.
setActionBar
C.
setActionBar
Answers
D.
setContentTransitionManager
D.
setContentTransitionManager
Answers
E.
setTheme
E.
setTheme
Answers
Suggested answer: B

Explanation:

Reference:

https://developer.android.com/training/basics/firstapp/building-ui https://developer.android.com/reference/android/app/Activity

A content label sometimes depends on information only available at runtime, or the meaning of a View might change over time. For example, a Play button might change to a Pause button during music playback. In these cases, to update the content label at the appropriate time, we can use:

A.
View#setContentDescription(int contentDescriptionResId)
A.
View#setContentDescription(int contentDescriptionResId)
Answers
B.
View#setContentLabel(int contentDescriptionResId)
B.
View#setContentLabel(int contentDescriptionResId)
Answers
C.
View#setContentDescription(CharSequence contentDescription)
C.
View#setContentDescription(CharSequence contentDescription)
Answers
D.
View#setContentLabel(CharSequence contentDescription)
D.
View#setContentLabel(CharSequence contentDescription)
Answers
Suggested answer: C

Explanation:

Reference:

https://support.google.com/accessibility/android/answer/7158690?hl=en

When using an ImageView, ImageButton, CheckBox, or other View that conveys information graphically. What attribute to use to provide a content label for that

View?

A.
android:contentDescription
A.
android:contentDescription
Answers
B.
android:hint
B.
android:hint
Answers
C.
android:labelFor
C.
android:labelFor
Answers
Suggested answer: A

Explanation:

Reference:

https://support.google.com/accessibility/android/answer/7158690?hl=en

When using an EditTexts or editable TextViews, or other editable View. What attribute to use to provide a content label for that View?

A.
android:contentDescription
A.
android:contentDescription
Answers
B.
android:hint
B.
android:hint
Answers
C.
android:labelFor
C.
android:labelFor
Answers
Suggested answer: B

Explanation:

Reference: https://support.google.com/accessibility/android/answer/7158690?hl=en

Total 128 questions
Go to page: of 13