Android Application Development (AND-401) — Question 105
Which of the following best explains the Android context menus?
Answer options
- A. It is a popup menu displays a list of items in a vertical list that’s anchored to the view that invoked the menu.
- B. It is a floating menu that appears when the user performs a long-click on an element. It provides actions that affect the selected content or context frame.
- C. It is the primary collection of menu items for an activity. It’s where you should place actions that have a global impact on the app, such as "Search", "Compose email", and "Settings".
- D. It is a sub-menu of an options menu item.
Correct answer: B
Explanation
The correct answer is B because it accurately describes a context menu as a floating menu that appears after a long-click, providing relevant actions. Option A describes a different type of menu, option C pertains to the options menu, and option D refers to a sub-menu, which does not capture the essence of a context menu.