AND-401

AND-401 practice questions, page 9 of 9, with answer review and explanations.

Question 41

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

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

Question 42

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.

Question 43

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

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

Question 44

An AsyncTask can be cancelled anytime from any thread.

  1. True
  2. False

Question 45

Which of the following is NOT true about onMeasure() method of class View?

  1. It measures the view and its contents to determine the measured width and height.
  2. It is invoked by measure().
  3. When overriding this method, a developer must call setMeasuredDimension().
  4. It takes three parameters: the height, width, and the depth of the view.