Google Associate-Android-Developer Associate Android Developer Exam Practice Test

Page: 1 / 14
Total 128 questions
Question 1

An overridden method onCreateOptionsMenu in an Activity returns boolean value. What does this value mean?



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 method should we use with Notification.Builder to supply a PendingIntent to be sent when the notification is clicked?



Question 7

In Android 8.0, API level 26, some APIs regarding notification behaviors were moved from Notification to NotificationChannel. For example, what should we use instead of NotificationCompat.Builder.setPriority() for Android 8.0 and higher?



Page:    1 / 14   
Total 128 questions