Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Associate-Android-Developer Topic 2 Question 52 Discussion

Actual exam question for Google's Associate Android Developer exam
Question #: 52
Topic #: 2
[All Associate Android Developer Questions]

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

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Lemuel
8 days ago
Haha, Dorthy, you've got it backward! That would be too easy. Android likes to keep us on our toes. A is definitely the right answer here.
upvoted 0 times
...
Dorthy
9 days ago
Wait, are you sure? I thought it was the other way around. Returning false would make the menu visible, and true would hide it. I could be wrong, but that's what I remember from the Android docs.
upvoted 0 times
...
Josphine
10 days ago
Yeah, I agree with Sherman. The documentation clearly states that the method should return true if you want the menu to be shown, and false if you don't. It's a pretty straightforward concept.
upvoted 0 times
...
Sherman
11 days ago
Hmm, this is an interesting question. I think the correct answer is A. Returning true means the menu will be displayed, while returning false means it won't be shown. It's all about controlling the visibility of the options menu in the Activity.
upvoted 0 times
...

Save Cancel