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
What two methods you have to override when implementing Android context menus?
- A . onCreateOptionsMenu, onCreateContextMenu
- B . onCreateContextMenu, onContextItemSelected
- C . onCreateOptionsMenu, onOptionsItemSelected
- D . onCreateOptionsMenu, onContextItemSelected
What two methods you have to override when implementing Android option menus?
- A . onCreateOptionsMenu, onCreateContextMenu
- B . onCreateContextMenu, onContextItemSelected
- C . onCreateOptionsMenu, onOptionsItemSelected
- D . onCreateOptionsMenu, onContextItemSelected
Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?
- A . onOptionsItemSelected
- B . onCreate
- C . onCreateMenu
- D . onCreateOptionsMenu
Which of the following Activity methods is invoked when the user clicks on an options menu item?
- A . onItemClicked
- B . onItemSelected
- C . onOptionsItemClicked
- D . onOptionsItemSelected
Which of the following WebView methods allows you to manually load custom HTML markup?
- A . loadData
- B . loadHTML
- C . loadCustomData
- D . loadCustomHTML
Which of the following is the base class of all UI components?
- A . ListView
- B . Layout
- C . View
- D . ViewGroup
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 ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, items);
listView.setAdapter(arrayAdapter);
- A . It creates a TextView for each String in array items.
- B . It creates Buttons for each String in array items.
- C . It creates four views for listView.
- D . It replaces the layout of the activity with three consecutive TextView items.
Which of the following is NOT a correct constructer for ArrayAdapter?
- A . ArrayAdapter(Context context)
- B . ArrayAdapter (Context context, int recourse)
- C . ArayAdpater (Context context , int resource, int textViewResourceId)
- D . ArrayAdapter (Context context , int resource, List<T> items)
Which of the following add a click listener to items in a listView?
- A . onClickListener.
- B . onItemClickListener.
- C . onItemClicked.
- D . onListItemClickListener.
Which of the following makes a ListView Clickable?
- A . setClickable(true)
- B . setVisibility(View.Visible)
- C . setEnabled(true)
- D . setItemsEnabled(true)