Free ASSOCIATE ANDROID DEVELOPER Exam Braindumps
Associate Android Developer Questions 46–50 (page: 11)

Updated On: 10-Feb-2026

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?

  1. MODE_PRIVATE or MODE_PUBLIC
  2. combination of MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE
  3. Value is either 0 or a combination of MODE_PRIVATE, MODE_WORLD_READABLE, D.
    MODE_WORLD_WRITEABLE, and MODE_MULTI_PROCESS

Answer(s): C



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

  1. 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.
  2. 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.
  3. 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.
  4. No any invocation of one of an InputStreamReader's read() methods can cause some bytes to be read from the underlying byte-input stream.

Answer(s): A,C



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?

  1. findPreference
  2. getPreferenceManager
  3. addPreferencesFromResource
  4. setPreferenceScreen

Answer(s): C



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

  1. onCreateLayoutManager
  2. onCreatePreferences
  3. onCreateRecyclerView
  4. onCreateView

Answer(s): B



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?

  1. onCreateLayoutManager
  2. onCreatePreferences
  3. onCreateRecyclerView
  4. onPreferenceTreeClick

Answer(s): D



Viewing page 11 of 27
Viewing questions 51 - 55 out of 128 questions


Post your Comments and Discuss Google ASSOCIATE ANDROID DEVELOPER exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!