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 2 Question 37 Discussion

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

The following Android code will show the small popup message "Message saved as draft" for 3.5 seconds, and then automatically disappears: Toast.makeText(this, "Message saved as draft". Toast.LENGTH_LONG).show()

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

An
1 months ago
If only the Toast message could last as long as my Java coffee break. Anyway, I'm sticking with False on this one.
upvoted 0 times
Veronika
1 days ago
False
upvoted 0 times
...
Amalia
7 days ago
B) False
upvoted 0 times
...
Melynda
15 days ago
B) False
upvoted 0 times
...
Art
20 days ago
A) True
upvoted 0 times
...
Man
26 days ago
A) True
upvoted 0 times
...
...
Venita
1 months ago
I'm going to have to agree with Helga on this one. This code is not going to do what the question is describing. Better double-check that before answering.
upvoted 0 times
...
Helga
1 months ago
Ha! Looks like someone needs to brush up on their Android documentation. This is clearly False, Toast.LENGTH_LONG is 3.5 to 5 seconds, not 3.5 seconds exactly.
upvoted 0 times
...
Margurite
2 months ago
Wait, isn't Toast.LENGTH_LONG supposed to be 3.5 seconds? I'm not sure about this one. Maybe I'll go with False just to be safe.
upvoted 0 times
Malcolm
19 days ago
Yeah, I agree. I'll go with False too.
upvoted 0 times
...
Carissa
29 days ago
I think you're right, Toast.LENGTH_LONG actually displays the message for a longer duration than 3.5 seconds.
upvoted 0 times
...
...
Jesus
2 months ago
I think it's true because the code uses Toast.LENGTH_LONG which means the message will be displayed for a longer duration.
upvoted 0 times
...
Trina
2 months ago
Hmm, the code looks correct to me. Toast.LENGTH_LONG should display the message for 3.5 seconds, so I'll go with True.
upvoted 0 times
Tenesha
12 days ago
User 3: True
upvoted 0 times
...
Sherita
19 days ago
User 2: True
upvoted 0 times
...
Cordell
1 months ago
User 1: True
upvoted 0 times
...
...
Chu
2 months ago
B) False
upvoted 0 times
...
Jesus
2 months ago
A) True
upvoted 0 times
...

Save Cancel