item.itemId in onOptionsItemSelected gives:

  1. The number of items
  2. The item's icon
  3. The activity ID
  4. The ID of the menu item that was clicked
Answer

D) The ID of the menu item that was clicked

itemId identifies the selected item.

Computer Science MCQ · More Lab: Menus and Messages MCQs · Practise