Google Associate Android Developer Exam Practice Test

Page: 1 / 14
Total 128 questions

Question 1

For example, suppose that in a XML file (res/menu/menu_main.xml as an example), where menu items are described, we have such item:

...

android:id="@+id/action_settings"

android:orderInCategory="100"

android:title="@string/menu_action_settings"

app:showAsAction="never" />

...

Attribute ''app:showAsAction'' shows when and how this item should appear as an action item in the app bar. What value ''never'' in this attribute means?



Answer : C

Question 2

In application theme style, flag windowNoTitle () indicates:



Answer : B

Question 3

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



Answer : B

Question 4

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?



Answer : A

Question 5

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:



Answer : C

Question 6

''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:



Answer : B

Question 7

In application theme style, flag windowNoTitle () indicates:



Answer : B

Page:    1 / 14   
Total 128 questions