Free AND-401 Exam Braindumps
Android Application Development Questions 81–85 (page: 18)

Updated On: 9-Feb-2026

Which of the following statements is correct about SQLite?

  1. It is an object database.
  2. It is client-server format.
  3. It is possible to create and access a database by using SQLOpenHelper.
  4. It can be accessed by other applications through ContentProvider.

Answer(s): D

Explanation:

Content providers are one of the primary building blocks of Android applications, providing content to applications. They encapsulate data and provide it to applications through the single ContentResolver interface. A content provider is only required if you need to share data between multiple applications. For example, the contacts data is used by multiple applications and must be stored in a content provider. If you don't need to share data amongst multiple applications you can use a database directly via SQLiteDatabase.


Reference:

http://stackoverflow.com/questions/13542892/android-access-sqlite-database-via-content-provider-orimplement-dao



When including a text file in your application to read from as a resource, what is the recommended location of such file?

  1. res/anim
  2. res/files
  3. res/raw
  4. res/values

Answer(s): C

Explanation:

You should place each type of resource in a specific subdirectory of your project's res/ directory. The raw/ subfolder should contain arbitrary files to save in their raw form.


Reference:

http://developer.android.com/guide/topics/resources/providing-resources.html



Which of the following statements about DDMS is incorrect?

  1. You can display a list of currently running threads and select one to check its stack trace.
  2. You can use it to acquire screenshots of a terminal.
  3. You can forcibly execute garbage collection and check the present heap usage status.
  4. You can do simulations of network zone speed and bandwidth limitations.

Answer(s): B

Explanation:

Note: Android Studio includes a debugging tool called the Dalvik Debug Monitor Server (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state information, incoming call and SMS spoofing, location data spoofing, and more.
Incorrect:
A: LogCat is integrated into DDMS, and outputs the messages that you print out using the Log class along with other system messages such as stack traces when exceptions are thrown.
C: DDMS allows you to view how much heap memory a process is using. This information is useful in tracking heap usage at a certain point of time during the execution of your application.
To view heap usage for a process:
1. In the Devices tab, select the process that you want to see the heap information for.
2. Click the Update Heap button to enable heap information for the process.
3. In the Heap tab, click Cause GC to invoke garbage collection, which enables the collection of heap data. When the operation completes, you will see a group of object types and the memory that has been allocated for each type. You can click Cause GC again to refresh the data.
D: The Telephony Status section of the Emulator controls tab lets you change different aspects of the phone's networks status, speed and latency. The following options are available to you and are effective immediately after you set them:
Voice - unregistered, home, roaming, searching, denied Data - unregistered, home, roaming, searching, denied
Speed - Full, GSM, HSCSD, GPRS, EDGE, UMTS, HSDPA Latency - GPRS, EDGE, UMTS


Reference:

http://developer.android.com/tools/debugging/ddms.html



Which of the following is incorrect about intents?

  1. They can be used to start an Activity
  2. They can be used to start a service
  3. They can be used to start database insertion
  4. They can be used to start a dialog-themed activity.

Answer(s): C

Explanation:

Incorrect:
A, B: An intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components, and startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service.
D: Example:
public static final String ACTION_BATTERY_LOW Added in API level 1
Broadcast Action: Indicates low battery condition on the device. This broadcast corresponds to the "Low battery warning" system dialog.


Reference:

http://developer.android.com/reference/android/content/Intent.html



Method onDraw() of class android.view.View has the following signature:

  1. public void onDraw(Color)
  2. public void onDraw(Canvas)
  3. public boolean onDraw(Canvas)
  4. public Canvas onDraw()

Answer(s): B

Explanation:

The parameter to onDraw() is a Canvas object that the view can use to draw itself.


Reference:

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



Viewing page 18 of 47
Viewing questions 86 - 90 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!