Google Associate Android Developer Exam Practice Test

Page: 1 / 14
Total 128 questions
Question 1

In application theme style, value statusBarColor () means:



Question 2

Content labels. What attribute to use to indicate that a View should act as a content label for another View?



Question 3

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

Which statement is most true about layout_constraintLeft_toRightOf and layout_constraintStart_toEndOf constraints ?



Question 5

Assume that you have the following situation: The app code calls for R.string.text_a Three relevant resource files are available:

- res/values/strings.xml, which includes text_a in the app's default language, in this case English.

- res/values-mcc404/strings.xml, which includes text_a in the app's default language, in this case English.

- res/values-hi/strings.xml, which includes text_a in Hindi.

The app is running on a device that has the following configuration:

- The SIM card is connected to a mobile network in India (MCC 404).

- The language is set to Hindi (hi).

Which is the correct statement below?



Answer : B

Android loads text_a from res/values-mcc404/strings.xml (in English), even if the device is configured for Hindi. That is because in the resource-selection process, Android prefers an MCC match over a language match (as a priority Exception).


https://developer.android.com/guide/topics/resources/localization

Question 6

What public methods are there in android.widget.Toast.Callback? (Choose two.)



Answer : B, D


Question 7

If constant LENGTH_INDEFINITE is used as a parameter for the setDuration method in Snackbar, what will happen?



Answer : D


Page:    1 / 14   
Total 128 questions