ASSOCIATE-ANDROID-DEVELOPER practice question 1 of 25

An overridden method onCreateOptionsMenu in an Activity returns boolean value. What does this value mean?

Full set: 128 questions
Answer options
A: You must return true for the menu to be displayed; if you return false it will not be shown.
B: You must return false for the menu to be displayed; if you return true it will not be shown.
C: You can return any value: the menu will be displayed anyway.
Correct Answer:
A Reference: https://developer.android.com/guide/topics/ui/menus
Scroll to Top