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
3 months ago
A) Bingo! It's the classic 'true for menu, false for no menu' rule. Easy peasy.
upvoted 0 times
Jacki
2 months ago
B) Bingo! It's the classic 'true for menu, false for no menu' rule. Easy peasy.
upvoted 0 times
...
Merilyn
2 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
3 months ago
B) Hah, good one! Return false to display the menu? That's like driving with your eyes closed.
upvoted 0 times
Leota
3 months ago
Yeah, returning false would be like hiding the menu from the users. Not a good idea at all.
upvoted 0 times
...
Lashanda
3 months ago
Haha, I know right! It's definitely important to return true to display the menu.
upvoted 0 times
...
...
Bethanie
4 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
3 months ago
A) Yeah, it's important to follow the documentation for proper functionality.
upvoted 0 times
...
Tamar
3 months ago
C) I think you're right, the documentation usually specifies the correct return value.
upvoted 0 times
...
Fletcher
3 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
4 months ago
I agree with Darell. Returning true will display the menu.
upvoted 0 times
...
Darell
4 months ago
I think the answer is A.
upvoted 0 times
...
Blondell
4 months ago
A) Yep, that's the one. Returning true means the menu gets displayed, simple as that.
upvoted 0 times
Sherill
3 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
3 months ago
A) Yep, that's the one. Returning true means the menu gets displayed, simple as that.
upvoted 0 times
...
Bok
3 months ago
Got it, thanks for clarifying.
upvoted 0 times
...
Christa
4 months ago
Returning true means the menu gets displayed.
upvoted 0 times
...
Lynsey
4 months ago
B) Exactly, returning false will prevent the menu from being shown.
upvoted 0 times
...
Gladis
4 months ago
A) Yep, that's the one. Returning true means the menu gets displayed, simple as that.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77