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 10 Question 78 Discussion

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

The following image includes Android code for creating a Date Picker. The date will appear in TextView which has id: dateText. Which of the following choices is correct about why you must add T to the month as illustrated in the code highlighted in brown?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Fernanda
1 months ago
This is the kind of question that makes me wish I had a crystal ball. But I'm leaning towards option A.
upvoted 0 times
...
Herman
2 months ago
Hold up, why would we need to worry about time zones for a simple date picker? Option D sounds like a red herring to me.
upvoted 0 times
Alana
19 days ago
C) This is a part of me loop.
upvoted 0 times
...
Kenny
23 days ago
B) No value will be added to the month, it is date style only.
upvoted 0 times
...
Kimberlie
29 days ago
A) Because the month starts from 0 until 11; therefore, adding 1 gives the correct month value.
upvoted 0 times
...
...
Della
2 months ago
Honestly, I just want the date to show up correctly. Option A seems like the way to go.
upvoted 0 times
...
Herminia
2 months ago
Wait, does the month really start from 0? Sounds like a programming conspiracy to me.
upvoted 0 times
Mendy
1 months ago
It's to ensure the month value is accurate in the Date Picker.
upvoted 0 times
...
Mendy
1 months ago
Adding 1 to the month value in code gives the correct month.
upvoted 0 times
...
Mendy
2 months ago
Yes, the month starts from 0 in Android code.
upvoted 0 times
...
...
Cyndy
2 months ago
I believe the answer is A as well, to match the correct month value.
upvoted 0 times
...
Colene
2 months ago
I'm not sure, but I think it has to do with how months are indexed in programming.
upvoted 0 times
...
Shannan
2 months ago
The whole month thing is just a ploy to confuse us, isn't it? I'm going with option A - just add 1 and be done with it!
upvoted 0 times
Justa
1 months ago
User 4: Adding 1 to the month makes sense to get the correct value.
upvoted 0 times
...
Hubert
1 months ago
Yeah, option A makes sense. Adding 1 to the month is the right choice.
upvoted 0 times
...
Adela
1 months ago
User 3: It's not about the loop, it's to adjust for the month starting at 0.
upvoted 0 times
...
Tresa
1 months ago
User 2: But what if it's a part of some loop?
upvoted 0 times
...
Hubert
2 months ago
I agree, option A is the way to go. Just add 1 to get the correct month value.
upvoted 0 times
...
Venita
2 months ago
User 1: I agree, just add 1 to the month and move on.
upvoted 0 times
...
...
Ngoc
2 months ago
I agree with Pearlene, adding 1 to the month makes sense.
upvoted 0 times
...
Pearlene
3 months ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel