nerdexam
Android

AND-401 · Question #9

AND-401 Question #9: Real Exam Question with Answer & Explanation

Sign in or unlock AND-401 to reveal the answer and full explanation for question #9. The question stem and answer options stay visible for context.

Question

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);

Options

  • AIt creates a TextView for each String in array items.
  • BIt creates Buttons for each String in array items.
  • CIt creates four views for listView.
  • DIt replaces the layout of the activity with three consecutive TextView items.

Unlock AND-401 to see the answer

You've previewed enough free AND-401 questions. Unlock AND-401 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full AND-401 Practice