Question: 1. ___________ are typically used to launch activities Select one: a. Intents b. XML files c. Senders d. None of the options 2. __________________ can
1. ___________ are typically used to launch activities Select one: a. Intents b. XML files c. Senders d. None of the options
2. __________________ can be used to add items to the screen menu Select one: a. onCreateOptionsMenu b. onCreate c. onPrepareOptionsMenu d. Both onCreateOptionsMenu and onCreate
3. If you want to call startActivity() from inside a class that is not an activity, you have to ____________ Select one: a. Use the context such as my_context.startActivity(....) b. Use the XML file such as xml.startActivity(....) c. Use the java filename such as filename.startActivity(....) d. Call directly startActivity(.....)
4. In Java, you have to implement the interface ___________ to specify the code that should execute when the user touches a Button Select one: a. View.OnItemClickListener b. View.OnClick c. View.OnClickListener d. View.OnItemClick
5. To display results in a listview we can use ___________ Select one: a. ArrayAdapter b. Custom adapter that extends BaseAdapter c. All the options
6. You can identify the selected item from the app action bar by calling ________ method, which returns the unique ID for the menu item Select one: a. getId() b. getItemId() c. getMenuId() d. None of the options
7. To define the list of items of a spinner in XML, the spinner's attribute ___________ is used Select one: a. android:entries b. android:source c. android:array d. None of the options
8. When playing an android game, SharedPreferences could be used for __________ Select one: a. Storing the highest score, but not lowest score b. Storing the highest score and the lowest score c. Storing only the user ID d. None of the options
9. In order to get data from a database located on a server we need to set the _________________ permission in __________________ file Select one: a. android.permission.INTERNET / AndroidManifest.xml b. online / AndroidManifest.xml c. android.permission.INTERNET / build.gradle d. online / build.gradle e. android.permission.DB / build.gradle f. android.permission.DB / AndroidManifest.xml
10. To retrieve values from a shared preferences file, a default value is used if the key ___________ Select one: a. Is not present b. Is present but its value is zero c. Is present but its value is wrong d. None of the options
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
