Free AND-401 Exam Braindumps (page: 12)

Page 11 of 58

Which of the following classes is used by Intent to transfer data between different android components?

  1. Extras
  2. Bundle
  3. Parcelables
  4. PendingIntent

Answer(s): B

Explanation:

Bundle is generally used for passing data between various activities of android. It depends on you what type of values you want to pass, but bundle can hold all types of values, and pass to the new activity.


Reference:

http://stackoverflow.com/questions/4999991/what-is-a-bundle-in-an-android-application



Which of the following is true about implicit intents? (Choose two)

  1. They do not have a component specified
  2. They have components specified to run an exact class.
  3. They must include information that allows Android system to choose the best component to run.
  4. They must contain extra information saved in a Bundle object.

Answer(s): A,C

Explanation:

Implicit intents do not name a specific component, but instead declare a general action to perform, which allows a component from another app to handle it.


Reference:

http://developer.android.com/guide/components/intents-filters.html



Which of the following classes should be extended to create a custom view?

  1. View
  2. ViewGroup
  3. Context
  4. Activity

Answer(s): A

Explanation:

All of the view classes defined in the Android framework extend View. Your custom view can also extend View directly, or you can save time by extending one of the existing view subclasses, such as Button.


Reference:

http://developer.android.com/training/custom-views/create-view.html



An AsyncTask can be cancelled anytime from any thread.

  1. True
  2. False

Answer(s): A

Explanation:

A task can be cancelled at any time by invoking cancel(boolean).


Reference:

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






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

AND-401 Exam Discussions & Posts