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 5 Question 59 Discussion

Actual exam question for Google's Associate-Android-Developer exam
Question #: 59
Topic #: 5
[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:

Carla
7 months ago
A) Bingo! It's the classic 'true for menu, false for no menu' rule. Easy peasy.
upvoted 0 times
Jacki
6 months ago
B) Bingo! It's the classic 'true for menu, false for no menu' rule. Easy peasy.
upvoted 0 times
...
Merilyn
6 months ago
A) You must return true for the menu to be displayed; if you return false it will not be shown.
upvoted 0 times
...
...
Veronique
7 months ago
B) Hah, good one! Return false to display the menu? That's like driving with your eyes closed.
upvoted 0 times
Leota
6 months ago
Yeah, returning false would be like hiding the menu from the users. Not a good idea at all.
upvoted 0 times
...
Lashanda
6 months ago
Haha, I know right! It's definitely important to return true to display the menu.
upvoted 0 times
...
...
Bethanie
7 months ago
C) Nah, that can't be right. The docs clearly state you gotta return true for the menu to show up.
upvoted 0 times
Hyun
7 months ago
A) Yeah, it's important to follow the documentation for proper functionality.
upvoted 0 times
...
Tamar
7 months ago
C) I think you're right, the documentation usually specifies the correct return value.
upvoted 0 times
...
Fletcher
7 months ago
A) You must return true for the menu to be displayed; if you return false it will not be shown.
upvoted 0 times
...
...
Shawn
8 months ago
I agree with Darell. Returning true will display the menu.
upvoted 0 times
...
Darell
8 months ago
I think the answer is A.
upvoted 0 times
...
Blondell
8 months ago
A) Yep, that's the one. Returning true means the menu gets displayed, simple as that.
upvoted 0 times
Sherill
7 months ago
B) You must return true for the menu to be displayed; if you return false it will not be shown.
upvoted 0 times
...
Lorean
7 months ago
A) Yep, that's the one. Returning true means the menu gets displayed, simple as that.
upvoted 0 times
...
Bok
7 months ago
Got it, thanks for clarifying.
upvoted 0 times
...
Christa
7 months ago
Returning true means the menu gets displayed.
upvoted 0 times
...
Lynsey
7 months ago
B) Exactly, returning false will prevent the menu from being shown.
upvoted 0 times
...
Gladis
7 months ago
A) Yep, that's the one. Returning true means the menu gets displayed, simple as that.
upvoted 0 times
...
...

Save Cancel