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 AND-803 Exam - Topic 4 Question 98 Discussion

When you configure your app to receive adds from Ad mediation, you should add the following code:Which of the following files you should add this code to?
B) Manifest.xml
A) MainActivity.java or MainActivity.kt
C) activity_main.xml
D) permission.class

Android AND-803 Exam - Topic 4 Question 98 Discussion

Actual exam question for Android's AND-803 exam
Question #: 98
Topic #: 4
[All AND-803 Questions]

When you configure your app to receive adds from Ad mediation, you should add the following code:

android:value="@integer/google_play_services_version"/>

Which of the following files you should add this code to?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Staci
2 hours ago
Agreed! Manifest.xml makes sense for configuration.
upvoted 0 times
...
Henriette
5 days ago
I think it should go in the Manifest.xml. That's where metadata usually lives.
upvoted 0 times
...
Desirae
10 days ago
Wait, are you sure? I thought it was something else!
upvoted 0 times
...
Odette
16 days ago
Yeah, Manifest.xml makes the most sense.
upvoted 0 times
...
Raylene
2 months ago
No way, it's not in activity_main.xml!
upvoted 0 times
...
Luisa
2 months ago
I thought it goes in MainActivity.java?
upvoted 0 times
...
Ellsworth
2 months ago
Definitely in the Manifest.xml file.
upvoted 0 times
...
Haydee
3 months ago
Yeah, Manifest.xml is the right place for that code!
upvoted 0 times
...
Ailene
3 months ago
Wait, is it really not in permission.class? That seems odd.
upvoted 0 times
...
Deeanna
3 months ago
100% sure it's not in activity_main.xml.
upvoted 0 times
...
Chana
3 months ago
I thought it was supposed to be in MainActivity.java?
upvoted 0 times
...
Joesph
3 months ago
Definitely goes in the Manifest.xml!
upvoted 0 times
...
Tawna
3 months ago
I definitely recall that the manifest is where you declare app components and permissions, so B seems like the best choice.
upvoted 0 times
...
Kandis
4 months ago
It feels like it could be in MainActivity.java or MainActivity.kt, but that doesn't seem right for metadata.
upvoted 0 times
...
Fairy
4 months ago
I'm not entirely sure, but I remember something about metadata being added to the manifest in a similar practice question.
upvoted 0 times
...
Linn
4 months ago
I think the code should go in the Manifest.xml file since it deals with app configuration.
upvoted 0 times
...

Save Cancel