Google ASSOCIATE-ANDROID-DEVELOPER Online Practice
Questions and Exam Preparation
ASSOCIATE-ANDROID-DEVELOPER Exam Details
Exam Code
:ASSOCIATE-ANDROID-DEVELOPER
Exam Name
:Associate Android Developer (Kotlin and Java)
Certification
:Google Certifications
Vendor
:Google
Total Questions
:128 Q&As
Last Updated
:Jul 14, 2026
Google ASSOCIATE-ANDROID-DEVELOPER Online Questions &
Answers
Question 101:
What do you want from Room when you create a DAO method and annotate it with @Delete?
Example:
@Dao
public interface MyDao {@Deletepublic void deleteUsers(User... users);
}
A. Room generates an implementation that inserts all parameters into the database in a single transaction. B. 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. C. 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 removes a set of entities, given as parameters, from the database. It uses the primary keys to find the entities to delete.
Question 102:
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: ...
...
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?
A. Only place this item in the app bar if there is room for it. If there is not room for all the items marked by this value, the items with the lowest orderInCategory values are displayed as actions, and the remaining items are displayed in the overflow menu. B. Also include the title text (defined by android:title) with the action item. You can include this value along with one of the others as a flag set, by separating them with a pipe. C. Never place this item in the app bar. Instead, list the item in the app bar's overflow menu. D. Always place this item in the app bar. Avoid using this unless it's critical that the item always appear in the action bar. Setting multiple items to always appear as action items can result in them overlapping with other UI in the app bar. E. The action view associated with this action item (as declared by android:actionLayout or android:actionViewClass) is collapsible.
C. Never place this item in the app bar. Instead, list the item in the app bar's overflow menu.
Question 103:
In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if you are implementing a custom slider bar that allows a user to select a numeric value by pressing the left or right arrows, your custom view should emit an event of type TYPE_VIEW_TEXT_CHANGED whenever the slider value changes. Which one of the following sample codes demonstrates the use of the sendAccessibilityEvent() method to report this event.
A. override fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent): Boolean {return super.dispatchPopulateAccessibilityEvent(event).let { completed ->if (text?.isNotEmpty() == true) {event.text.add(text)true } else {completed}}} B. override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean {return when(keyCode) {KeyEvent.KEYCODE_DPAD_LEFT -> {currentValue-sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED)true } ... }} C. override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean {return when(keyCode) {KeyEvent.KEYCODE_ENTER -> {currentValue-sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CONTEXT_CLICKED)true } ... }}
B. override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean {return when(keyCode) {KeyEvent.KEYCODE_DPAD_LEFT -> {currentValue-sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED)true } ... }}
Question 104:
Select 3 major components of the Room. (Choose three.)
A. @Entity B. @Query C. @RawQuery D. @DAO E. @WorkerThread F. @Database
A. @Entity D. @DAO F. @Database
Question 105:
What is the incorrect statement about Data Access Object (androidx.room.Dao)?
A. Data Access Objects are the main classes where you define your database interactions. They can include a variety of query methods. B. 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. C. An abstract @Dao class can optionally have a constructor that takes a Database as its only parameter. D. It is recommended to have only one Dao class in your codebase for all tables.
D. It is recommended to have only one Dao class in your codebase for all tables.
Question 106:
When scheduling unique work, you must tell WorkManager what action to take when there is a conflict. You do this by passing an enum when enquing the work. For one-time work, you provide an ExistingWorkPolicy, which supports some options for handling the conflict. (Choose four.)
A. REPLACE (existing work with the new work. This option cancels the existing work) B. KEEP (existing work and ignore the new work) C. APPEND (the new work to the end of the existing work. This policy will cause your new work to be chained to the existing work, running after the existing work finishes) D. APPEND_OR_REPLACE (functions similarly to APPEND, except that it is not dependent on prerequisite work status. If the existing work is CANCELLED or FAILED, the new work still runs) E. APPEND_OR_KEEP (functions similarly to APPEND, except that it is not dependent on prerequisite work status. If the existing work is CANCELLED or FAILED, the new work still not runs) F. APPEND_AND_RUN (functions similarly to APPEND, except that it is not dependent on prerequisite work status. If the existing work is PAUSED, the new work still runs) G. DESTROY (if any work exists, the new work will be ignored) H. APPEND_OR_DESTROY (if no any work exists, the new work will be ignored)
A. REPLACE (existing work with the new work. This option cancels the existing work) B. KEEP (existing work and ignore the new work) C. APPEND (the new work to the end of the existing work. This policy will cause your new work to be chained to the existing work, running after the existing work finishes) D. APPEND_OR_REPLACE (functions similarly to APPEND, except that it is not dependent on prerequisite work status. If the existing work is CANCELLED or FAILED, the new work still runs)
Question 107:
Interface for a callback to be invoked when a shared preference is changed. Interface is named:
A. android.content.SyncStatusObserver B. android.content.SharedPreferences.Editor C. android.content.SharedPreferences.OnSharedPreferenceChangeListener D. android.content.SharedPreferences
C. android.content.SharedPreferences.OnSharedPreferenceChangeListener
Question 108:
What is illustrated in the picture?
A. Logcat window with filter settings B. Debugging native code using LLDB C. The Variables and Watches panes in the Debugger window D. The Breakpoints window lists all the current breakpoints and includes behavior settings for each E. Adding a watchpoint to a variable in memory
E. Adding a watchpoint to a variable in memory
Question 109:
To automate UI tests with Android Studio, you implement your test code in a separate Android test folder. Folder could be named:
A. app/androidTest/java B. app/src/androidTest/java C. app/java/androidTest
B. app/src/androidTest/java
Question 110:
If you want get a debuggable APK that people can install without adb, in Android Studio you can:
A. Select your debug variant and click Build Bundle(s) / APK(s) > Build APK(s). B. Click the Run button from toolbar C. Select your debug variant and click Analyze APK.
A. Select your debug variant and click Build Bundle(s) / APK(s) > Build APK(s).
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Google exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your ASSOCIATE-ANDROID-DEVELOPER exam preparations
and Google certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.