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
24 hours 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
...
Venita
2 days 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
5 days 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
14 days 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
...
Jesus
16 days 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
16 days 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
...
Chu
21 days ago
B) False
upvoted 0 times
...
Jesus
25 days ago
A) True
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77