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()
Suggested Answer: B
Get Premium AND-801 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
34 comments · newest first
SE
Sean
11 months ago
I always thought it was 3.5 seconds too!
MI
Mirta
11 months ago
Nope, it’s definitely not true.
GE
Germaine
12 months ago
Wait, I thought Toast.LENGTH_LONG was longer than that?
JO
Josphine
12 months ago
Agree, it’s not 3.5 seconds, more like 2.
LE
Lea
12 months ago
That's actually false, it shows for a shorter time.
BR
Brande
1 year 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!
YO
Youlanda
1 year 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.
JO
Jolanda
1 year 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.
CA
Casie
1 year 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.
CA
Candida
1 year 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.
IR
Irma
1 year 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.
EV
Evan
1 year 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.
AN
An
1 year ago
If only the Toast message could last as long as my Java coffee break. Anyway, I'm sticking with False on this one.
AD
Adelaide
1 year ago
False
IS
Isadora
1 year ago
B) False
RO
Rochell
1 year ago
A) True
YU
Yuette
1 year ago
False
VE
Veronika
1 year ago
False
AM
Amalia
1 year ago
B) False
ME
Melynda
1 year ago
B) False
AR
Art
1 year ago
A) True
MA
Man
1 year ago
A) True
VE
Venita
1 year 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.
HE
Helga
1 year 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.
MA
Margurite
2 years 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.
MA
Malcolm
1 year ago
Yeah, I agree. I'll go with False too.
CA
Carissa
1 year ago
I think you're right, Toast.LENGTH_LONG actually displays the message for a longer duration than 3.5 seconds.
JE
Jesus
2 years ago
I think it's true because the code uses Toast.LENGTH_LONG which means the message will be displayed for a longer duration.
TR
Trina
2 years 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.
TE
Tenesha
1 year ago
User 3: True
SH
Sherita
1 year ago
User 2: True
CO
Cordell
1 year ago
User 1: True
CH
Chu
2 years ago
B) False
JE
Jesus
2 years ago
A) True