Android AND-401 Android Application Development Online Training
Android AND-401 Online Training
The questions for AND-401 were last updated at May 09,2025.
- Exam Code: AND-401
- Exam Name: Android Application Development
- Certification Provider: Android
- Latest update: May 09,2025
Which of the following classes is used by Intent to transfer data between different android components?
- A . Extras
- B . Bundle
- C . Parcelables
- D . PendingIntent
Which of the following is true about implicit intents? (Choose two)
- A . They do not have a component specified
- B . They have components specified to run an exact class.
- C . They must include information that allows Android system to choose the best component to run.
- D . They must contain extra information saved in a Bundle object.
Which of the following classes should be extended to create a custom view?
- A . View
- B . ViewGroup
- C . Context
- D . Activity
Which of the following is NOT true about onMeasure() method of class View?
- A . It measures the view and its contents to determine the measured width and height.
- B . It is invoked by measure().
- C . When overriding this method, a developer must call setMeasuredDimension().
- D . It takes three parameters: the height, width, and the depth of the view.
Which of the following Activity life-cycle methods is invoked when a dialog is shown?
- A . onPause()
- B . onCreate()
- C . onStop()
- D . onDestroy()
Which of the following is NOT true about class DefaultHttpClient?
- A . It supports HTTPS.
- B . It supports streaming uploads and downloads.
- C . It is only supported on Android versions 2.2 and older.
- D . It is Andriod’s default implementation of an HTTP client.
Which of the following is NOT true about the SharedPreferences interface?
- A . The data it saves is persistent even if application is killed.
- B . It only saves primitive data in key-value pairs.
- C . Modifications to preferences saved should go through class SharedPreferences.Editor
- D . It can save any data type in key-value pairs.
What does the following code do?
dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND, LayoutParams.FLAG_BLUR_BEHIND);
- A . When dialog is displayed the activity behind it will be blurred.
- B . When dialog is displayed the activity behind it will be dimmed.
- C . Any EditText behind the dialog will be disabled.
- D . When the dialog is displayed, the edges of the dialog will be blurred.
What does the following code achieve?
Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);
- A . Starts a browser activity
- B . Starts a sub-activity
- C . Starts an activity service
- D . Sends results to another activity.