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 1 Question 76 Discussion

Actual exam question for Android's AND-801 exam
Question #: 76
Topic #: 1
[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:

Maddie
2 months ago
Option D is the winner! These menu items are obviously in the activity_main.xml file, where else would they be? This question is a piece of cake.
upvoted 0 times
...
Malinda
2 months ago
Haha, option C is ridiculous. Who puts menu items in the AndroidManifest.xml file? That's like putting your kitchen appliances in the garage, it just doesn't make sense.
upvoted 0 times
Kenny
1 months ago
C) These menu items are already added to AndroidManitfest,xml file.
upvoted 0 times
...
Lashawn
1 months ago
B) As illustrated in the code, these items are already added in the resource the called menu.xml and this file exists m a container called menu.
upvoted 0 times
...
Davida
1 months ago
A) This file will not show any menu items.
upvoted 0 times
...
...
Carlee
2 months ago
What do you mean the menu items are not in the code file? They're clearly shown in the image, so option B must be the answer. The emulator must be broken or something.
upvoted 0 times
Stevie
27 days ago
Option B seems to be the correct answer.
upvoted 0 times
...
Kattie
1 months ago
Yes, the image shows the menu items, but they are defined in a separate resource file.
upvoted 0 times
...
Daniel
1 months ago
So the menu items are actually coming from a separate file, that makes sense now.
upvoted 0 times
...
Trinidad
1 months ago
Exactly, the menu items are not directly in the code file but are referenced from the menu.xml file.
upvoted 0 times
...
Lenny
1 months ago
The emulator might not be displaying them correctly.
upvoted 0 times
...
Juan
2 months ago
That's right, they are not directly in the code file.
upvoted 0 times
...
Mable
2 months ago
Option B) As illustrated in the code, these items are already added in the resource the called menu.xml and this file exists in a container called menu.
upvoted 0 times
...
Eric
2 months ago
The menu items are added in the resource file called menu.xml.
upvoted 0 times
...
...
Makeda
3 months ago
The code snippet doesn't show any menu items, so option A must be correct. This is a pretty straightforward question.
upvoted 0 times
Ming
2 months ago
I'm not sure, but it's important to check all the possible sources where the menu items could be coming from.
upvoted 0 times
...
Shalon
2 months ago
That's true, they could also be added in the AndroidManifest.xml file as mentioned in option C.
upvoted 0 times
...
Grover
2 months ago
But maybe the items are added in another file, like menu.xml as mentioned in option B.
upvoted 0 times
...
Cecil
2 months ago
Option D suggests the items are added in activity_main.xml file.
upvoted 0 times
...
Demetra
2 months ago
I'm not sure, but option C mentions adding items to AndroidManifest.xml file.
upvoted 0 times
...
Annelle
2 months ago
I think option A is correct, the code snippet doesn't show any menu items.
upvoted 0 times
...
Lemuel
2 months ago
But maybe the items are added in a separate file like menu.xml, as mentioned in option B.
upvoted 0 times
...
Fletcher
3 months ago
I think option A is correct, the code doesn't show any menu items.
upvoted 0 times
...
...
Stephaine
3 months ago
I agree with Catalina, the code must be referencing the menu items from the menu.xml file.
upvoted 0 times
...
Catalina
3 months ago
I think the menu items come from the menu.xml file.
upvoted 0 times
...

Save Cancel