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 4 Question 80 Discussion

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

Shannan
2 months ago
I'm just going to go with option A and hope the Android gods are kind to me. Time zones? Who needs 'em anyway?
upvoted 0 times
...
Rosenda
2 months ago
Option D? Really? Avoiding time zone conflicts? That's like trying to fix a flat tire by changing the oil. Not buying it.
upvoted 0 times
Jolanda
20 days ago
I agree, option D doesn't seem relevant. Option A makes more sense in this context.
upvoted 0 times
...
Jolanda
23 days ago
I think option A is correct. Months start from 0 in Java, so adding 1 gives the correct month value.
upvoted 0 times
...
...
Brent
2 months ago
Option A makes the most sense to me. The month index is zero-based, so adding 1 makes perfect sense.
upvoted 0 times
Cammy
1 months ago
Yes, adding 1 to the month index is necessary in this case.
upvoted 0 times
...
Gracie
1 months ago
I agree, option A is the correct choice.
upvoted 0 times
...
...
Diane
2 months ago
I believe the answer is A because months are zero-indexed in programming languages.
upvoted 0 times
...
Hershel
2 months ago
Hmm, the month starts at 0 but we add 1 to get the correct value. Seems like the Android team is playing a little game with us.
upvoted 0 times
Jennifer
19 days ago
User 1
upvoted 0 times
...
Alesia
1 months ago
User 2
upvoted 0 times
...
Dana
2 months ago
User 1
upvoted 0 times
...
...
Gladys
2 months ago
I'm not sure, but I think it has to do with how months are indexed in programming.
upvoted 0 times
...
Jovita
2 months ago
The 'T' stands for 'Time', right? I mean, who doesn't love a good time-related bug in their code?
upvoted 0 times
Darrin
1 months ago
D) To avoid any conflict due to difference in the time zone.
upvoted 0 times
...
Hermila
2 months ago
No, it stands for 'Time'.
upvoted 0 times
...
Terrilyn
2 months ago
A) Because the month starts from 0 until 11; therefore, adding 1 gives the correct month value.
upvoted 0 times
...
...
Donte
2 months ago
I agree with Emmanuel, adding 1 to the month makes sense.
upvoted 0 times
...
Emmanuel
3 months ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel