Android
AND-401 · Question #102
AND-401 Question #102: Real Exam Question with Answer & Explanation
Sign in or unlock AND-401 to reveal the answer and full explanation for question #102. The question stem and answer options stay visible for context.
Question
What does the following line of code do? Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG); toast.setGravity(Gravity.TOP|Gravity.RIGH, 0, 0);
Options
- AThe toast will have it UI components place on the top-right corner.
- BThe toast will appear on the top-right corner.
- CThe toast will show the text message on top-right corner of the toast box.
- DThe toast will appear at the center of the screen at position (0,0), but aligned to the top- right
Unlock AND-401 to see the answer
You've previewed enough free AND-401 questions. Unlock AND-401 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.