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 AND-801 Exam - Topic 2 Question 37 Discussion

Posted by Merilyn on Dec 29, 2022 at 12:53 AM

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
↳ replying to An
False
IS
Isadora 1 year ago
↳ replying to An
B) False
RO
Rochell 1 year ago
↳ replying to An
A) True
YU
Yuette 1 year ago
↳ replying to An
False
VE
Veronika 1 year ago
↳ replying to An
False
AM
Amalia 1 year ago
↳ replying to An
B) False
ME
Melynda 1 year ago
↳ replying to An
B) False
AR
Art 1 year ago
↳ replying to An
A) True
MA
Man 1 year ago
↳ replying to An
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
↳ replying to Margurite
Yeah, I agree. I'll go with False too.
CA
Carissa 1 year ago
↳ replying to Margurite
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
↳ replying to Trina
User 3: True
SH
Sherita 1 year ago
↳ replying to Trina
User 2: True
CO
Cordell 1 year ago
↳ replying to Trina
User 1: True
CH
Chu 2 years ago
B) False
JE
Jesus 2 years ago
A) True
0/2000 characters

Save Cancel