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

Android Exam AND-801 Topic 8 Question 79 Discussion

Actual exam question for Android's AND-801 exam
Question #: 79
Topic #: 8
[All AND-801 Questions]

The code snippet below displays a menu which is illustrated in another image. The emulator image displays a menu that contains three items, but in the code file none of these menu items are available. Where do these items come from?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Joana
17 days ago
This question is a real brain-teaser. I'm picturing the exam developers sitting around scratching their heads, trying to come up with the most confusing way to ask about menu items. Well played, my friends. Well played.
upvoted 0 times
...
Maryann
20 days ago
Option C is just silly. Why would the menu items be in the AndroidManifest.xml file? That's for app configuration, not UI elements.
upvoted 0 times
...
Colette
24 days ago
I believe the menu items are added in the AndroidManifest.xml file.
upvoted 0 times
...
Georgiana
24 days ago
I'm going to have to go with option D on this one. The menu items are probably added in the activity_main.xml file, which is where the main UI is defined.
upvoted 0 times
Marshall
9 days ago
No, I'm pretty sure they are added in AndroidManifest.xml file.
upvoted 0 times
...
Bobbye
15 days ago
I think the menu items are actually added in the menu.xml file, not activity_main.xml.
upvoted 0 times
...
...
Rana
30 days ago
Option B makes the most sense. The menu items are likely defined in the menu.xml resource file, which is then used by the code to display the menu.
upvoted 0 times
Lindsey
17 days ago
That's right, the code references the menu items from the menu.xml file.
upvoted 0 times
...
Adelle
22 days ago
Yes, the menu items are usually defined in a separate XML file like menu.xml.
upvoted 0 times
...
Cristina
24 days ago
I agree, option B seems to be the correct answer.
upvoted 0 times
...
...
Elza
1 months ago
I agree with Brandee, the code references the menu.xml file.
upvoted 0 times
...
Thea
1 months ago
The code snippet clearly doesn't have the menu items, so option A is correct. The items must be coming from somewhere else, just not this code file.
upvoted 0 times
Edelmira
11 days ago
Definitely, the code file itself does not contain the menu items.
upvoted 0 times
...
Anastacia
25 days ago
So, option B is the correct answer then.
upvoted 0 times
...
Rosendo
27 days ago
Yes, that makes sense. They must be coming from there.
upvoted 0 times
...
Angella
1 months ago
I think the menu items are added in the resource file menu.xml.
upvoted 0 times
...
...
Brandee
1 months ago
I think the menu items come from the menu.xml file.
upvoted 0 times
...

Save Cancel