AND-401 Exam Questions
141 real AND-401 exam questions with expert-verified answers and explanations. Page 1 of 3.
- Question #1
What does the src folder contain?
- Question #2
Which file specifies the minimum required Android SDK version your application supports?
- Question #3
What is the parent class of all Activity widgets?
- Question #4
What two methods you have to override when implementing Android option menus?
- Question #5
Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?
- Question #6
Which of the following Activity methods is invoked when the user clicks on an options menu item?
- Question #7
Which of the following WebView methods allows you to manually load custom HTML markup?
- Question #8
Which of the following is the base class of all UI components?
- Question #9
Which of the following is true about object arrayAdapter declared in the code below? String[] items = {"Item 1","Item 2","Item 3"}; ArrayAdapter<String> arrayAdapter = new ArrayAda...
- Question #10
Which of the following is NOT a correct constructer for ArrayAdapter?
- Question #11
Which of the following add a click listener to items in a listView?
- Question #12
Which of the following makes a ListView Clickable?
- Question #13
Which of the following classes is used by Intent to transfer data between different android components?
- Question #14
Which of the following is true about implicit intents? (Choose two)
- Question #15
Which of the following classes should be extended to create a custom view?
- Question #16
An AsyncTask can be cancelled anytime from any thread.
- Question #17
Which of the following is NOTtrue about onMeasure() method of class View?
- Question #18
Which of the following Activity life-cycle methods is invoked when a dialog is shown?
- Question #19
Which of the following is NOT true about class DefaultHttpClient?
- Question #20
Which ContentProvider does Android not provide as a standard?
- Question #21
Which of these is the incorrect explanation of SQLite?
- Question #22
Which of these Activity class methods must be overridden when creating a Menu that is displayed when the device's Menu button is pressed?
- Question #23
Which approval is necessary to execute Bluetooth actions such as connection requests, connection receipt, and data forwarding?
- Question #24
Which class is used when a sensor is accessed?
- Question #25
Which of the following is correct about XML layout files?
- Question #26
The DalvikVM core libraries are a subset of which of the following?
- Question #27
Which of the following is correct about file access in the Android system?
- Question #28
Which is the correct explanation of ListView?
- Question #29
Which of following is incorrect about the Toast class?
- Question #30
Which of the following is not a ContentProvider provided natively by Android?
- Question #31
When creating a file using android.content.Context.openFileOutput("test.txt", 0), where is the file created?
- Question #32
What is not true about the AndroidManifest.xml file?
- Question #33
If your application is throwing exception android.content.ActivityNotFoundException, how to fix it?
- Question #34
Consider the following code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); startActivity(intent); Which of the following is correct about the code above?
- Question #35
Which of the following is not true about <activity> tag in AndroidManifest file?
- Question #36
Which of these is NOT recommended in the Android Developer's Guide as a method of creating an individualView?
- Question #37
Which of these is the incorrect explanation of the Android SDK and AVD Manager?
- Question #38
Which of these is the correct explanation regarding the following methods? (1)android.content.Context.sendBroadcast (2)android.content.Context.startActivity
- Question #39
Which of the following is incorrect about ProgressDialog?
- Question #40
Which of these is the correct function of Traceview?
- Question #41
Which of the following is the correct way to add access permission to your application?
- Question #42
Which of the following statements is correct about SQLite?
- Question #43
When including a text file in your application to read from as a resource, what is the recommended location ofsuch file?
- Question #44
Which of the following statements about DDMS is incorrect?
- Question #45
Which of the following is incorrect about intents?
- Question #46
Method onDraw() of class android.view.View has the following signature:
- Question #47
To add a new Activity to your application, you need to perform the following steps:
- Question #48
To create a customized Adapterfor a compound list item layout, you should:
- Question #49
When publishing an update to your application to the market, the following must be taken into consideration:
- Question #51
Which UI does the following code builds? <?xml version="1.0" encoding="utf-8"?> android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertic...