Exam Details

  • Exam Code
    :ASSOCIATE-ANDROID-DEVELOPER
  • Exam Name
    :Google Developers Certification - Associate Android Developer (Kotlin and Java Exam)
  • Certification
    :Google Certifications
  • Vendor
    :Google
  • Total Questions
    :128 Q&As
  • Last Updated
    :May 16, 2024

Google Google Certifications ASSOCIATE-ANDROID-DEVELOPER Questions & Answers

  • Question 71:

    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.

  • Question 72:

    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?

    A. delete(String key)

    B. clear()

    C. remove(String key)

    D. removeAll()

  • Question 73:

    SharedPreferences.Editor is an interface used for modifying values in a SharedPreferences object. All changes you make in an editor are batched, and not copied back to the original SharedPreferences until you call:

    A. commit()

    B. apply() C. commit() or apply()

  • Question 74:

    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?

    A. onCreateLayoutManager

    B. onCreatePreferences

    C. onCreateRecyclerView

    D. onPreferenceTreeClick

  • Question 75:

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

    B. getPreferenceManager

    C. addPreferencesFromResource

    D. setPreferenceScreen

  • Question 76:

    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)?

    A. onCreateLayoutManager

    B. onCreatePreferences

    C. onCreateRecyclerView

    D. onCreateView

  • Question 77:

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

    A. An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

    B. An InputStreamReader is a bridge from character streams to byte streams: It reads characters using a specified charset and encodes them into bytes. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

    C. Each invocation of one of an InputStreamReader's read() methods may cause one or more bytes to be read from the underlying byte-input stream. To enable the efficient conversion of bytes to characters, more bytes may be read ahead from the underlying stream than are necessary to satisfy the current read operation.

    D. No any invocation of one of an InputStreamReader's read() methods can cause some bytes to be read from the underlying byte-input stream.

  • Question 78:

    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?

    A. MODE_PRIVATE or MODE_PUBLIC

    B. combination of MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE

    C. Value is either 0 or a combination of MODE_PRIVATE, MODE_WORLD_READABLE, D. MODE_WORLD_WRITEABLE, and MODE_MULTI_PROCESS

  • Question 79:

    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

  • Question 80:

    With a room database. When performing queries, you'll often want your app's UI to update automatically when the data changes. Can you use a return value of type LiveData in your query method description to achieve this?

    A. Yes

    B. No

Tips on How to Prepare for the Exams

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.