Google Associate Android Developer Exam Questions

Associate Android Developer Exam demonstrates the type of skill that an entry-level Android Developer should have as they begin their career. PassQuestion released new Google Associate Android Developer Exam Questions to help candidates prepare for Associate Android Developer exam well. New Google Associate Android Developer Exam Questions released with 107 practice questions and answers online, which assist you to plan for the Google Developers Certification – Associate Android Developer (Kotlin and Java Exam) exam.

Test Online Associate Android Developer Free Questions

1. In our TeaViewModel class, that extends ViewModel, we have such prorerty:

val tea: LiveData<Tea>

An observer in our Activity (type of mViewModel variable in example is TeaViewModel) is set in this way:

mViewModel!!.tea.observe(this, Observer { tea: Tea? -> displayTea(tea) })

What will be a correct displayTea method definition?


2. What is the incorrect statement about Data Access Object (


3. About running a debuggable build variant. Usually, you can just select the default "debug" variant that’s included in every Android Studio project (even though it’s not visible in the build.gradle file). But if you define new build types that should be debuggable, you must add ‘debuggable true’ to the build type.

Is that mostly true?


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


5. The Testing Pyramid, shown in the Figure, illustrates how your app should include the three categories of tests: small, medium, and large. Small tests are unit tests that:


6. For example, we have a file in our assets folder app/src/main/assets/sample_teas.json.

To get an InputStream for reading it, from out Context context, we can try do this:


7. 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:defaultValue="@string/pref_default_sort_value" app:iconSpaceReserved="false" />

In our Fragment, we can dynamically get current notification preference value in this way:


8. To automate UI tests with Android Studio, you implement your test code in a separate Android test folder. Folder could be named:


9. The Log class allows you to create log messages that appear in logcat. Generally, you could use the following log methods: (Choose five.)


10. Once your test has obtained a UiObject object, you can call the methods in the UiObject class to perform user interactions on the UI component represented by that object.

You can specify such actions as: (Choose four.)


11. Filter logcat messages.

If in the filter menu, a filter option “Show only selected application”? means:


12. As an example. In an Activity we have our TimerViewModel object (extended ViewModel), named mTimerViewModel. mTimerViewModel.timer method returns a LiveData<Long> value.

What can be a correct way to set an observer to change UI in case if data was changed?


13. What is illustrated in the picture?


14. What is demonstrated by the code below?

// RawDao.kt


interface RawDao { @RawQuery

fun getUserViaQuery(query: SupportSQLiteQuery?): User?


// Usage of RawDao

val query =

SimpleSQLiteQuery("SELECT * FROM User WHERE id = ? LIMIT 1",


val user = rawDao.getUserViaQuery(query)


15. If you want to access a specific UI component in an app, use the UiSelector class. This class represents a query for specific elements in the currently displayed UI.

What is correct about it? (Choose two.)


16. What statements about InputStreamReader ( are correct? (Choose two.)


17. In a class PreferenceFragmentCompat.

What method is called during onCreate(Bundle) to supply the preferences for this fragment. And where subclasses are expected to call setPreferenceScreen (PreferenceScreen) either directly or via helper methods such as addPreferencesFromResource (int)?


18. When your code execution reaches the breakpoint, Android Studio pauses execution of your app. You can then use the tools in the Debugger tab to identify the state of the app.

With Step Over you can


19. By default, the notification’s text content is truncated to fit one line.

If you want your notification to be longer, for example, to create a larger text area, you can do it in this way:


20. In a class PreferenceFragmentCompat. As a convenience, this fragment implements a click listener for any preference in the current hierarchy.

So, in what overridden method we can handle that a preference in the tree rooted at this PreferenceScreen has been clicked?


21. Filter logcat messages. If in the filter menu, a filter option “Edit Filter Configuration”? means:


22. To run a debuggable build variant you must use a build variant that includes


23. When your code execution reaches the breakpoint, Android Studio pauses execution of your app. You can then use the tools in the Debugger tab to identify the state of the app.

With Step Out you can


24. For example, we have a BufferedReader reader, associated with the json file through


To get a file data we can do this:


25. 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?


26. What is a correct part of an Implicit Intent for sharing data implementation?


27. SharedPreferences.Editor is an interface used for modifying values in a SharedPreferences object.

To mark in the editor that a preference value should be removed, which will be done in the actual preferences once commit() or apply() is called, what method in SharedPreferences.Editor should we use?


28. Each time your test invokes onView(), Espresso waits to perform the corresponding UI action or assertion until the following synchronization conditions are met: (Choose three.)


29. The easiest way of adding menu items (to specify the options menu for an activity) is inflating an XML file into the Menu via MenuInflater. With menu_main.xml we can do it in this way:


30. 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?


31. For example, we have a file in our raw folder app/src/main/res/raw/sample_teas.json.

To get an InputStream for reading it, from out Context context, we can do this:


32. 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?


33. What is illustrated in the picture?


34. With our Context we can get SharedPreferences with a method, named: getSharedPreferences (String name, int mode).

What value can we transfer in a “mode”parameter?


35. Run your test in one of the following ways (select possible): (Choose three.)


Question 1 of 35

Google Cloud-Digital-Leader Exam Dumps For Your 100% Success
Apigee API Engineer Exam Questions

Leave a Reply

Your email address will not be published. Required fields are marked *