nerdexam
Android

OA0-002 · Question #107

The following menu_option.xml defines the layout of the menu which is displayed by pushing the device's Menu button. Which of the following menu component descriptions should be put into (1)?

The correct answer is D. <item android:id="@+id/open" android:title-"Open">. See the full explanation below for the reasoning.

Question

The following menu_option.xml defines the layout of the menu which is displayed by pushing the device's Menu button. Which of the following menu component descriptions should be put into (1)?

Options

  • A<menultem android:id="@+id/open" android:title-"Open">
  • B<option android:id="@+id/open" android:title="Open">
  • C<optionitem android:id-'@+id/open"android:title-"Open">
  • D<item android:id="@+id/open" android:title-"Open">

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    13% (5)
  • C
    8% (3)
  • D
    76% (29)

Community Discussion

No community discussion yet for this question.

Full OA0-002 Practice