Android AND-401 Exam
Android Application Development (Page 9 )

Updated On: 30-Jan-2026

Which of the following adds a click listener to items in a ListView?

  1. setonClickListener
  2. setonItemClickListener
  3. setonItemClicked
  4. setonListItemClickListener

Answer(s): B

Explanation:

SetOnItemClickListener(AdapterView.OnItemClickListener listener) registers a callback to be invoked when an item in this AdapterView has been clicked.
Note: An AdapterView is a view whose children are determined by an Adapter. Incorrect:
A: SetOnClickListener (View.OnClickListener l) registers a callback to be invoked when this view is clicked. If this view is not clickable, it becomes clickable.


Reference:

http://developer.android.com/reference/android/widget/AdapterView.html



Which one of the following statements is NOT a function of the Action Bar?

  1. It provides a dedicated space on the screen to identify the current activity to the user.
  2. It facilitates the accessibility to important application actions.
  3. It loads web URLs to display HTML pages.
  4. It supports consistent navigation and view switching within apps.

Answer(s): C

Explanation:

The key functions of the app bar are as follows:
A dedicated space for giving your app an identity and indicating the user's location in the app. Access to important actions in a predictable way, such as search.
Support for navigation and view switching (with tabs or drop-down lists).


Reference:

http://developer.android.com/training/appbar/index.html



The values of which of the following classes cannot be mapped in a Bundle object?

  1. Parcelable objects
  2. Primitive data types
  3. Serializable objects
  4. Context

Answer(s): D

Explanation:

A Bundle is a mapping from String values to various Parcelable types.
The Bundle(ClassLoader loader) constructor constructs a new, empty Bundle that uses a specific ClassLoader for instantiating Parcelable and Serializable objects.
Incorrect:
A: Whenever you see a Bundle, you’re dealing with a Parcel under the hood.


Reference:

http://developer.android.com/reference/android/os/Bundle.html



What Activity method you would use to retrieve a reference to an Android view by using the id attribute of a resource XML?

  1. findViewByReference(int id)
  2. findViewById(int id)
  3. retrieveResourceById(int id)
  4. findViewById(String id)

Answer(s): B



Which folder contains the Android project Java files?

  1. res
  2. manifests
  3. assets
  4. java

Answer(s): D


Reference:

https://developer.android.com/studio/projects/index.html



Viewing page 9 of 47
Viewing questions 41 - 45 out of 228 questions



Post your Comments and Discuss Android AND-401 exam prep with other Community members:

Join the AND-401 Discussion