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
    :Apr 20, 2024

Google Google Certifications ASSOCIATE-ANDROID-DEVELOPER Questions & Answers

  • Question 1:

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

    B. RecyclerView.ItemDecoration

    C. RecyclerView.ViewHolder

    D. RecyclerViewAccessibilityDelegate

  • Question 2:

    RecyclerView is a subclass of ViewGroup and is a more resource-efficient way to display scrollable lists. Instead of creating a View for each item that may or may not be visible on the screen, RecyclerView:

    A. creates a single list item and reuses it for visible content.

    B. creates an unlimited number of list items and never reuses them

    C. creates a limited number of list items and reuses them for visible content.

    D. creates a single list item and never reuses it

  • Question 3:

    We have a custom view that extends android.widget.ProgressBar. Our progress bar is not touchable, focusable, etc.: it just shows progress. Style for our custom progress bar extends "Widget.AppCompat.ProgressBar.Horizontal". An item, named "progressDrawable", in our style, is a xml file . What we usually can see as a main single element in this xml file:

    A. A State List ( element )

    B. A Layer List ( element) with items android:id="@+id/progress" and android:id="@+id/ background" inside it.

    C. An element with android:id="@+id/progress" identifier

  • Question 4:

    Working with Custom View. To define custom attributes, we can add resources to our project. It is customary to put these resources into a file:

    A. res/layout/attrs.xml

    B. res/values/attrs.xml

    C. res/raw/attrs.xml

    D. res/xml/attrs.xml

  • Question 5:

    Working with Custom View. Once you define the custom attributes, you can use them in layout XML files just like built-in attributes. The only difference is that your custom attributes belong to a different namespace. Instead of belonging to the http://schemas.android.com/apk/res/android namespace, they belong to:

    A. http://schemas.android.com/apk/res/[your package name]

    B. http://schemas.android.com/apk/[your package name]

    C. http://schemas.android.com/[your package name]

  • Question 6:

    To handle an options menu item click in an activity, we usually should override method named:

    A. onKey

    B. onClick

    C. onOptionsItemSelected

  • Question 7:

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

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

  • Question 8:

    An overridden method onCreateOptionsMenu in an Activity returns boolean value. What does this value mean?

    A. You must return true for the menu to be displayed; if you return false it will not be shown.

    B. You must return false for the menu to be displayed; if you return true it will not be shown.

    C. You can return any value: the menu will be displayed anyway.

  • Question 9:

    In application theme style, value statusBarColor () means:

    A. Color of text (usually same as colorForeground).

    B. Shows a thin line of the specified color between the navigation bar and the app content. For this to take effect, the window must be drawing the system bar backgrounds with

    C. attr.windowDrawsSystemBarBackgrounds and the navigation bar must not have been requested to be translucent with R.attr.windowTranslucentNavigation. Corresponds to Window.setNavigationBarDividerColor(int).

    D. The color for the status bar. If the color is not opaque, consider setting View.SYSTEM_UI_FLAG_LAYOUT_STABLE and View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN. For this to take effect, the window must be drawing the system bar backgrounds with

    E. attr.windowDrawsSystemBarBackgrounds and the status bar must not have been requested to be translucent with R.attr.windowTranslucentStatus. Corresponds to Window.setStatusBarColor(int).

    F. The color for the navigation bar. If the color is not opaque, consider setting View.SYSTEM_UI_FLAG_LAYOUT_STABLE and View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION. For this to take effect, the window must be drawing the system bar backgrounds with R.attr.windowDrawsSystemBarBackgrounds and the navigation bar must not have been

    requested to be translucent with

    G. attr.windowTranslucentNavigation. Corresponds to Window.setNavigationBarColor(int).

  • Question 10:

    In application theme style, flag windowDrawsSystemBarBackgrounds () indicates:

    A. whether this window should have an Action Bar in place of the usual title bar.

    B. whether there should be no title on this window.

    C. that this window should not be displayed at all.

    D. whether this is a floating window.

    E. whether this Window is responsible for drawing the background for the system bars.

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.