Android AND-401 - Android Application Development Exam

Page:    1 / 26   
Total 129 questions

Which of the following is NOT true about class ListActivity?

  • A. An activity that displays a list of items by binding to a data set.
  • B. Its layout must be set by calling method setContentView inside onCreate.
  • C. It contains a ListView object that can be bound to different data sets. Binding, screen layout, and row layout are discussed in the following sections.
  • D. A data source that can be bound in a ListActivity can be an array or Cursor holding query results.


Answer : B

Which of the following is NOT true about method getWindow() of class Dialog do?

  • A. It retrieves the current window for the activity.
  • B. It can be used to access parts of the Windows API.
  • C. It displays the dialog on the screen.
  • D. It returns null if the activity is not visual.


Answer : C

Which of these is the correct explanation regarding the following methods?
(1)android.content.Context.sendBroadcast
(2)android.content.Context.startActivity

  • A. Both methods are defined by overloading.
  • B. Both methods throw an exception.
  • C. Both methods are asynchronous.
  • D. Both methods are able to broadcast an Intent.


Answer : D

Which is the correct explanation of ListView?

  • A. It is necessary to use ListView as a set with ListActivity.
  • B. You cannot use a ListView when there is no information to be displayed.
  • C. When displaying a list of Strings using an ArrayAdapter class in ListView, you must save the value in an ArrayList.
  • D. ListView has a function to display a list of uniquely defined Views other than TextView.


Answer : D

Which of the following a Notification object must contain? (Choose three)

  • A. A small icon
  • B. A detail text.
  • C. A notification sound
  • D. A title


Answer : A,B,D

Page:    1 / 26   
Total 129 questions