Free AND-401 Exam Braindumps
Android Application Development Questions 101–105 (page: 22)

Updated On: 9-Feb-2026

Which of the following is NOT true about SQLiteOpenHelper class? (Choose two)

  1. It has two abstract methods: onCreate() and onUpgrade().
  2. It is used to perform database querying.
  3. It manages database creation and updates.
  4. It manages database versions using ContentProvider.

Answer(s): B,C

Explanation:

Incorrect:
A: onCreate() and onUpgrade() are the only two abstract methods of this class.
D: SQLiteOpenHelper handles database creation and version management.
This class makes it easy for ContentProvider implementations to defer opening and upgrading the database until first use, to avoid blocking application startup with long-running database upgrades.


Reference:

http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html



Which of the following is a rule that developers must always follow when writing multi-threaded Android applications? (Choose two)

  1. A worker thread must not be created from inside the UI thread.
  2. Each UI thread must not create more than one worker thread.
  3. The UI thread must never be blocked.
  4. The Android UI must not be accessed from outside the UI thread.

Answer(s): C,D

Explanation:

C: If everything is happening in the UI thread, performing long operations such as network access or database queries will block the whole UI. When the thread is blocked, no events can be dispatched, including drawing events. From the user's perspective, the application appears to hang. Even worse, if the UI thread is blocked for more than a few seconds (about 5 seconds currently) the user is presented with the infamous "application not responding" (ANR) dialog.
D: The Andoid UI toolkit is not thread-safe. So, you must not manipulate your UI from a worker thread—you must do all manipulation to your user interface from the UI thread.


Reference:

http://developer.android.com/guide/components/processes-and-threads.html



Which of the following are layout-related methods called by the framework on views, and you can override them when customizing a view? (Choose two)

  1. onMeasure().
  2. onDraw().
  3. onKeyUp().
  4. onSizeChanged().

Answer(s): A,D


Reference:

http://developer.android.com/reference/android/view/View.html



Which of the following is true about this code snippet? (Choose two)

Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse(“tel:555-1234”)); startActivity(intent);

  1. This is an explicit intent that start the system’s dialer.
  2. The system will not dial the number without adding permission CALL_PHONE.
  3. The system will perform an intent resolution to start the proper activity.
  4. The code will not compile.

Answer(s): B,C



Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)

  1. onCreate > onStart > onResume > onPause> onStop> onCreate
  2. onCreate > onStart > onResume > onPause> onStop>onRestart
  3. onCreate > onStart > onResume > onPause> onStop>onDestroy
  4. onCreate > onStart > onResume > onPause> onStop>onResume

Answer(s): B,C



Viewing page 22 of 47
Viewing questions 106 - 110 out of 228 questions


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

AI Tutor AI Tutor 👋 I’m here to help!