New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Android AND-801 Exam - 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:

0/2000 characters
Sean
4 months ago
I always thought it was 3.5 seconds too!
upvoted 0 times
...
Mirta
4 months ago
Nope, it’s definitely not true.
upvoted 0 times
...
Germaine
4 months ago
Wait, I thought Toast.LENGTH_LONG was longer than that?
upvoted 0 times
...
Josphine
4 months ago
Agree, it’s not 3.5 seconds, more like 2.
upvoted 0 times
...
Lea
4 months ago
That's actually false, it shows for a shorter time.
upvoted 0 times
...
Brande
5 months ago
I’m pretty sure LENGTH_LONG is around 3.5 seconds, but I could be mixing it up with something else. I wish I had reviewed this more!
upvoted 0 times
...
Youlanda
5 months ago
This seems similar to a question I did about Toast messages, but I feel like it might actually be false since I don't remember 3.5 seconds being a standard duration.
upvoted 0 times
...
Jolanda
5 months ago
I remember practicing with Toast messages, and I thought LENGTH_LONG was supposed to be longer than LENGTH_SHORT, but I can't recall the exact times.
upvoted 0 times
...
Casie
5 months ago
I think the Toast.LENGTH_LONG actually shows the message for 3.5 seconds, but I'm not entirely sure if that's the exact duration.
upvoted 0 times
...
Candida
5 months ago
This question seems a bit tricky. I'll need to carefully examine the information provided in the image and options to determine the correct answer.
upvoted 0 times
...
Irma
5 months ago
Executing an infinite production planning run for the critical resources sounds like it could work, but I'll need to make sure I understand the implications.
upvoted 0 times
...
Evan
5 months ago
I'm not sure about the difference between the options, but I'll carefully read through each one and try to understand the logic behind them.
upvoted 0 times
...
An
10 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
Adelaide
8 months ago
False
upvoted 0 times
...
Isadora
8 months ago
B) False
upvoted 0 times
...
Rochell
8 months ago
A) True
upvoted 0 times
...
Yuette
9 months ago
False
upvoted 0 times
...
Veronika
9 months ago
False
upvoted 0 times
...
Amalia
9 months ago
B) False
upvoted 0 times
...
Melynda
9 months ago
B) False
upvoted 0 times
...
Art
9 months ago
A) True
upvoted 0 times
...
Man
10 months ago
A) True
upvoted 0 times
...
...
Venita
10 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
10 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
11 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
9 months ago
Yeah, I agree. I'll go with False too.
upvoted 0 times
...
Carissa
10 months 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
11 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
11 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
9 months ago
User 3: True
upvoted 0 times
...
Sherita
9 months ago
User 2: True
upvoted 0 times
...
Cordell
10 months ago
User 1: True
upvoted 0 times
...
...
Chu
11 months ago
B) False
upvoted 0 times
...
Jesus
11 months ago
A) True
upvoted 0 times
...

Save Cancel