Try Before You Buy

Download a free sample of any of our exam questions and answers

  • 24/7 customer support, Secure shopping site
  • Free One year updates to match real exam scenarios
  • If you failed your exam after buying our products we will refund the full amount back to you.

[Oct 30, 2021] Prepare For The Associate-Android-Developer Question Papers In Advance [Q69-Q91]

Share

[Oct 30, 2021] Prepare For The Associate-Android-Developer Question Papers In Advance

Associate-Android-Developer PDF Dumps Real 2021 Recently Updated Questions


The Google Associate Android Developer exam is a performance-based test that emphasizes proving competence in Android development and showcasing your practical knowledge on various concepts in this field. Furthermore, in this exam, a coding project based on a starter app will be assigned to you. So, you will be asked to add features and fix bugs in this project.

If you are an entry-level Android developer, passing this exam and obtaining the relevant Google Associate Android Developer certification will help you to stand out in your IT development career.

 

NEW QUESTION 69
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?

  • A. NotificationChannel.setImportance()
  • B. NotificationChannel.setPriority()
  • C. NotificationCompat.Builder.setImportance()

Answer: A

Explanation:
Reference:
https://developer.android.com/training/notify-user/build-notification

 

NEW QUESTION 70
For example, our preferences.xml file was added by addPreferencesFromResource (R.xml.preferences). Our preferences.xml file contains such item:
<SwitchPreference android:id="@+id/notification" android:key="@string/pref_notification_key" android:title="@string/pref_notification_title" android:summary="@string/pref_notification_summary" android:defaultValue="@bool/pref_notification_default_value" app:iconSpaceReserved="false"/> In our Fragment, we can dynamically get current notification preference value in this way:

  • A. val isNotificationOn = PreferenceManager.getSharedPreferences (context).getBoolean( context!!.resources.getBoolean(R.bool.pref_notification_default_value), context!!.getString(R.string.pref_notification_key) )
  • B. val isNotificationOn = PreferenceManager.getSharedPreferences (context).getBoolean( context!!.getString(R.string.pref_notification_default_value), context!!.getString(R.string.pref_notification_key), )
  • C. val isNotificationOn = PreferenceManager.getDefaultSharedPreferences (context).getBoolean( context!!.getString(R.string.pref_notification_key), context!!.resources.getBoolean(R.bool.pref_notification_default_value) )

Answer: C

 

NEW QUESTION 71
If you want the Database Inspector to automatically update the data it presents as you interact with your running app, check the Live updates checkbox at the top of the inspector window. While live updates are enabled, what happens with the table in the inspector window?

  • A. It becomes read-only, but you cannot see its updated values before updating the data by clicking the Refresh table button at the top of the inspector window.
  • B. It is still editable. You can modify data in a table by double-clicking a cell, typing a new value, and pressing Enter.
  • C. It becomes read-only and you cannot modify its values.

Answer: C

 

NEW QUESTION 72
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
  • B. android:labelFor
    Explanation
  • C. android:hint

Answer: A

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

 

NEW QUESTION 73
By adding a RoomDatabase.Callback to the room database builder RoomDatabase.Builder (method addCallback(RoomDatabase.Callback callback)), we can: (Choose two.)

  • A. handle database opening
  • B. set the database factory
  • C. disable the main thread query check for Room
  • D. handle database first time creation

Answer: A,D

 

NEW QUESTION 74
Room can export your database's schema information into a JSON file at compile time. What annotation processor property you should set in your app/build.gradle file to export the schema?

  • A. room.incremental
  • B. room.expandProjection
  • C. room.schemaLocation

Answer: C

Explanation:
android {
...
defaultConfig {
...
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation":
"$projectDir/schemas".toString()]
}
}
}
}

 

NEW QUESTION 75
What is illustrated in the picture?

  • A. The Variables and Watches panes in the Debugger window
  • B. Debugging native code using LLDB
  • C. Adding a watchpoint to a variable in memory
  • D. The Breakpoints window lists all the current breakpoints and includes behavior settings for each
  • E. Logcat window with filter settings

Answer: C

 

NEW QUESTION 76
In application theme style, flag windowDrawsSystemBarBackgrounds (<item name="android:windowDrawsSystemBarBackgrounds">) indicates:

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

Answer: A

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

 

NEW QUESTION 77
Android Tests. You can use the childSelector() method to nest multiple UiSelector instances. For example, the following code example shows how your test might specify a search to find the first ListView in the currently displayed UI, then search within that ListView to find a UI element with the text property Apps.
What is the correct sample?

  • A. val appItem: UiObject = device.findObject( UiSelector().className("android.widget.ListView")
    .instance(
    UiSelector().text("Apps")
    )
    )
  • B. val appItem: UiObject = device.findObject( UiSelector().className("android.widget.ListView")
    .instance(0)
    .childSelector(
    UiSelector().text("Apps")
    )
    )
  • C. val appItem: UiObject = device.findObject( UiSelector().className(ListView.class)
    .instance(1)
    .childSelector(
    UiSelector().text("Apps")
    )
    )

Answer: B

 

NEW QUESTION 78
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:hint
  • B. android:labelFor
  • C. android:contentDescription

Answer: A

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

 

NEW QUESTION 79
For example, our preferences.xml file was added by addPreferencesFromResource (R.xml.preferences). Our preferences.xml file contains such item:
<ListPreference android:id="@+id/order_by" android:key="@string/pref_sort_key" android:title="@string/pref_sort_title" android:summary="@string/pref_sort_summary" android:dialogTitle="@string/pref_sort_dialog_title" android:entries="@array/sort_oder" android:entryValues="@array/sort_oder_value" android:defaultValue="@string/pref_default_sort_value" app:iconSpaceReserved="false" /> In our Fragment, we can dynamically get current notification preference value in this way:

  • A. String sortBy = PreferenceManager.getSharedPreferences(getContext()).getString( getContext().getString(R.string.pref_default_sort_value), getContext().getString(R.string.pref_sort_key) );
  • B. String sortBy = PreferenceManager.getDefaultSharedPreferences(getContext ()).getString( getContext().getString(R.string.pref_sort_key), getContext().getString(R.string.pref_default_sort_value) ) Section: JAVA only Explanation
  • C. boolean sortBy = PreferenceManager.getSharedPreferences(getContext()).getBoolean ( getContext().getResources().getBoolean(R.bool.pref_default_sort_value), getContext().getString(R.string.pref_sort_key) );
  • D. String sortBy = PreferenceManager.getDefaultSharedPreferences(getContext ()).getString( getContext().getString(R.string.pref_sort_key), getContext().getResources().getBoolean(R.bool.pref_default_sort_value) );

Answer: B

 

NEW QUESTION 80
What is the incorrect statement about Data Access Object (androidx.room.Dao)?

  • A. It is recommended to have only one Dao class in your codebase for all tables.
  • B. An abstract @Dao class can optionally have a constructor that takes a Database as its only parameter.
  • C. Data Access Objects are the main classes where you define your database interactions. They can include a variety of query methods.
  • D. The class marked with @Dao should either be an interface or an abstract class. At compile time, Room will generate an implementation of this class when it is referenced by a Database.

Answer: A

 

NEW QUESTION 81
"workManager" is an instance of WorkManager. Select correct demonstration of WorkRequest cancellation:

  • A. WorkRequest request = new OneTimeWorkRequest.Builder(FooWorker.class).build(); workManager.enqueue(request); LiveData<WorkInfo> status = workManager.getWorkInfoByIdLiveData(request.getId ()); status.observe(...);
  • B. WorkRequest request = new OneTimeWorkRequest.Builder(FooWorker.class).build(); workManager.enqueue(request); workManager.cancelWorkById(request.getId());
  • C. workManager.enqueue(new OneTimeWorkRequest.Builder(FooWorker.class).build());
  • D. WorkRequest request = new OneTimeWorkRequest.Builder(FooWorker.class).build(); workManager.enqueue(request); workManager.cancelWork(request);
  • E. WorkRequest request1 = new OneTimeWorkRequest.Builder(FooWorker.class).build(); WorkRequest request2 = new OneTimeWorkRequest.Builder(BarWorker.class).build (); WorkRequest request3 = new OneTimeWorkRequest.Builder(BazWorker.class).build (); workManager.beginWith(request1, request2).then(request3).enqueue();

Answer: B

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

 

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

Answer: B

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

 

NEW QUESTION 83
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
  • B. android:labelFor
  • C. android:hint

Answer: A

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

 

NEW QUESTION 84
In a class extended PreferenceFragmentCompat. What method is used to inflate the given XML resource and add the preference hierarchy to the current preference hierarchy?

  • A. getPreferenceManager
  • B. addPreferencesFromResource
  • C. findPreference
  • D. setPreferenceScreen

Answer: B

 

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

Answer:

Explanation:

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

 

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

Answer:

Explanation:

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

 

NEW QUESTION 87
Which build options in the Build menu to choose to delete all intermediate/cached build files.

  • A. Generate Signed Bundle / APK
  • B. Make Module
  • C. Rebuild Project
  • D. Clean Project
  • E. Make Project

Answer: D

Explanation:
Reference:
https://developer.android.com/studio/run

 

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

  • A. android:hint
  • B. android:labelFor
  • C. android:contentDescription

Answer: B

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

 

NEW QUESTION 89
What do you want from Room when you create a DAO method and annotate it with @Delete?
Example:
@Dao
interface MyDao {
@Delete
fun deleteUsers(vararg users: User)
}

  • A. Room modifies a set of entities, given as parameters, in the database. It uses a query that matches against the primary key of each entity.
  • B. Room removes a set of entities, given as parameters, from the database. It uses the primary keys to find the entities to delete.
  • C. Room generates an implementation that inserts all parameters into the database in a single transaction.

Answer: B

 

NEW QUESTION 90
Android Tests. You can use the childSelector() method to nest multiple UiSelector instances. For example, the following code example shows how your test might specify a search to find the first ListView in the currently displayed UI, then search within that ListView to find a UI element with the text property Apps.
What is the correct sample?

  • A. UiObject appItem = device.findObject(new UiSelector()
    .className("android.widget.ListView")
    .instance(new UiSelector()
    .text("Apps")));
  • B. UiObject appItem = device.findObject(new UiSelector()
    .className(ListView.class)
    .instance(1)
    .childSelector(new UiSelector()
    .text("Apps")));
  • C. UiObject appItem = device.findObject(new UiSelector()
    .className("android.widget.ListView")
    .instance(0)
    .childSelector(new UiSelector()
    .text("Apps")));

Answer: C

 

NEW QUESTION 91
......

Associate-Android-Developer Dumps and Practice Test (125 Exam Questions): https://www.dumptorrent.com/Associate-Android-Developer-braindumps-torrent.html