Latest [Nov 08, 2021] Associate-Android-Developer Exam Dumps - Valid and Updated Dumps [Q74-Q92]

Share

Latest [Nov 08, 2021] Associate-Android-Developer Exam Dumps - Valid and Updated Dumps

Free Sales Ending Soon - 100% Valid Associate-Android-Developer Exam Dumps with 125 Questions


Google Associate Android Developer Certified Professional salary

The average salary of a Google Associate Android Developer Certified Expert in different regions is as follows:

  • England: 135,500 POUNDS
  • India: 20,00,000 INR
  • United State: 120,000 USD
  • Europe: 130,000 EURO

 

NEW QUESTION 74
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. Value is either 0 or a combination of MODE_PRIVATE, MODE_WORLD_READABLE, D.
    MODE_WORLD_WRITEABLE, and MODE_MULTI_PROCESS
  • B. MODE_PRIVATE or MODE_PUBLIC
  • C. combination of MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE

Answer: A

 

NEW QUESTION 75
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:
...
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/menu_action_settings"
app:showAsAction="never" />
...
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. 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.
  • B. Never place this item in the app bar. Instead, list the item in the app bar's overflow menu.
  • C. 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.
  • D. The action view associated with this action item (as declared by android:actionLayout or android:actionViewClass) is collapsible.
  • E. 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.

Answer: B

Explanation:
Reference:
https://developer.android.com/guide/topics/ui/menus

 

NEW QUESTION 76
What method should we use with Notification.Builder to supply a PendingIntent to be sent when the notification is clicked?

  • A. setDeleteIntent
  • B. setContentIntent
  • C. setContentInfo

Answer: B

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

 

NEW QUESTION 77
If no any folder like res/anim-<qualifiers>, res/drawable-<qualifiers>, res/layout-<qualifiers>, res/raw-
<qualifiers>, res/xml-<qualifiers> exist in the project. Which folders are required in the project anyway? (Choose two.)

  • A. res/drawable/
  • B. res/xml/
  • C. res/anim/
  • D. res/layout/
  • E. res/raw/

Answer: A,D

Explanation:
Reference:
https://developer.android.com/guide/topics/resources/localization

 

NEW QUESTION 78
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:

  • A. @Override
    public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.menu_main, menu);
    return true;
    }
  • B. @Override
    public boolean onOptionsItemSelected(MenuItem item) {
    getMenuInflater().inflate(R.menu.menu_main, menu); return super.onOptionsItemSelected(item);
    }
  • C. @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.menu.menu_main);
    }

Answer: A

Explanation:
Reference:
https://developer.android.com/guide/topics/ui/menus

 

NEW QUESTION 79
Enable debugging on your device: If you are using the emulator, this is enabled by default. But for a connected device, you need to

  • A. enable debugging in the device developer options.
  • B. enable transfer data from the device in usb connection options.
  • C. enable connection in bluetooth options.

Answer: A

 

NEW QUESTION 80
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 onKeyUp(keyCode: Int, event: KeyEvent): Boolean { return when(keyCode) { KeyEvent.KEYCODE_DPAD_LEFT -> { currentValue-- sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED) true
    }
    ...
    }
    }
  • B. override fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent): Boolean { return super.dispatchPopulateAccessibilityEvent(event).let { completed -> if (text?.isNotEmpty() == true) { event.text.add(text) true
    } else {
    completed
    }
    }
    }
  • C. override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean { return when(keyCode) { KeyEvent.KEYCODE_ENTER -> { currentValue-- sendAccessibilityEvent (AccessibilityEvent.TYPE_VIEW_CONTEXT_CLICKED) true
    }
    ...
    }
    }

Answer: A

 

NEW QUESTION 81
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 82
Android uses adapters (from the Adapter class) to connect data with View items in a list. There are many different kinds of adapters available, and you can also write custom adapters. To connect data with View items, the adapter needs to know about the View items. From what is extended the entity that is usually used in an adapter and describes a View item and its position within the RecyclerView?

  • A. RecyclerView.ViewHolder
  • B. RecyclerViewAccessibilityDelegate
  • C. RecyclerView.AdapterDataObserver
  • D. RecyclerView.ItemDecoration

Answer: A

Explanation:
Reference:
https://developer.android.com/guide/topics/ui/layout/recyclerview

 

NEW QUESTION 83
"Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy." This can be done by calling method:

  • A. setContentView
  • B. findViewById
  • C. setContentTransitionManager
  • D. setTheme
  • E. setActionBar

Answer: A

 

NEW QUESTION 84
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. onCreateRecyclerView
  • C. onCreatePreferences
  • D. onPreferenceTreeClick

Answer: D

 

NEW QUESTION 85
Relative positioning is one of the basic building blocks of creating layouts in ConstraintLayout. Constraints allow you to position a given widget relative to another one. What constraints do not exist?

  • A. layout_constraintBaseline_toStartOf
  • B. layout_constraintBottom_toBottomOf
  • C. layout_constraintStart_toEndOf
  • D. layout_constraintBaseline_toBaselineOf

Answer: A

Explanation:
Reference:
https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout

 

NEW QUESTION 86
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() or apply()
  • B. commit()
  • C. apply()

Answer: A

 

NEW QUESTION 87
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. 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)
  • B. REPLACE (existing work with the new work. This option cancels the existing work)
  • C. KEEP (existing work and ignore the new work)
  • D. 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)
  • E. APPEND_OR_DESTROY (if no any work exists, the new work will be ignored)
  • F. 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)
  • G. DESTROY (if any work exists, the new work will be ignored)
  • H. 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)

Answer: B,C,F,H

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 88
With recommended app architecture. Fill the following diagram, which shows how all the modules usually should interact with one another after designing the app (drag modules to correct places).

Answer:

Explanation:

 

NEW QUESTION 89
In application theme style, flag windowActionBar (<item name="windowActionBar">) indicates:

  • A. whether this window should have an Action Bar in place of the usual title bar.
  • B. whether the given application component is available to other applications.
  • C. whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).
  • D. whether this window's Action Bar should overlay application content.

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 90
The Layout Inspector in Android Studio allows you to compare your app layout with design mockups, display a magnified or 3D view of your app, and examine details of its layout at runtime. When this is especially useful?

  • A. when your layout is built at runtime rather than entirely in XML and the layout is behaving unexpectedly.
  • B. when your layout is built entirely in XML rather than runtime and the layout is behaving expectedly.

Answer: A

 

NEW QUESTION 91
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:

  • A. val input = context!!.resources.openRawResource(R.raw.sample_teas)
  • B. val input = context!!.resources.assets.open("sample_teas.json")
  • C. val input = context!!.assets.open("sample_teas.json")

Answer: C

 

NEW QUESTION 92
......

Associate-Android-Developer Exam Dumps - 100% Marks In Associate-Android-Developer Exam: https://www.testkingfree.com/Google/Associate-Android-Developer-practice-exam-dumps.html