Free AND-401 Exam Braindumps
Android Application Development Questions 111–115 (page: 24)

Updated On: 9-Feb-2026

Which of the following you cannot achieve by creating your own View sub-classes?

  1. Create a completely new customized View type.
  2. Combine a group of View components into a new single component.
  3. Specify when to destroy an activity and all its views.
  4. Override the way that an existing component is displayed on the screen.

Answer(s): A

Explanation:

Incorrect:
B: A view can be comprised of multiple other views (otherwise known as a composite view). Such views are subclassed from the Android ViewGroup class (android.view.ViewGroup) which is itself a subclass of View.


Reference:

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



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

  1. It retrieves the current window for the activity.
  2. It can be used to access parts of the Window API.
  3. It displays the dialog on the screen.
  4. It returns null if the activity is not visible.

Answer(s): C

Explanation:

Incorrect:
A: getWindow() retrieves the current window for the activity.
B: getWindow() can be used to directly access parts of the Window API that are not available through Activity/ Screen.
D: getWindow() returns the current window, or null if the activity is not visual.


Reference:

http://developer.android.com/reference/android/app/Dialog.html#getWindow()



Which of the following best defines an Android fragment?

  1. It is a portion of the user-interface that is embedded in an activity.
  2. It is the component that allows asynchronous loading of data into an activity.
  3. It is an XML file that defines the layout of an activity.
  4. It is a type of a drawable resource file.

Answer(s): A

Explanation:

A Fragment is a piece of an activity which enable more modular activity design.


Reference:

http://www.tutorialspoint.com/android/android_fragments.htm



What is the location of APK generated by the build system of Android Studio?

  1. app/build/apk
  2. app/apks
  3. app/build/outputs/apk
  4. app/intermediates/outputs/apk

Answer(s): A

Explanation:

If you are using Gradle, then it would be in the build/apk folder.


Reference:

http://stackoverflow.com/questions/16620366/apk-location-in-new-android-studio



Which of the following AsyncTask methods is NOT executed on the UI thread?

  1. onPreExecute()
  2. onPostExecute()
  3. publishProgress()
  4. onProgressUpdate()

Answer(s): C

Explanation:

When an asynchronous task is executed, the task goes through 4 steps:
1. onPreExecute(), invoked on the UI thread before the task is executed. This step is normally used to setup the task, for instance by showing a progress bar in the user interface.
2. doInBackground(Params...), invoked on the background thread immediately after onPreExecute() finishes executing.
3. onProgressUpdate(Progress...), invoked on the UI thread after a call to publishProgress(Progress...).
4. onPostExecute(Result), invoked on the UI thread after the background computation finishes. Reference:
http://developer.android.com/reference/android/os/AsyncTask.html



Viewing page 24 of 47
Viewing questions 116 - 120 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!