Multiple Choice
Which of the following is the correct syntax for displaying a toast message for a long length of time?
A) Toast.makeText(MainActivity.this, Toast.LENGTH_LONG.show("A toast message") ;
B) Toast.makeText(MainActivity.this, "A toast message", Toast.LENGTH_LONG) .show( ) ;
C) Toast.LENGTH_LONG(MainActivity.this, "A toast message", Toast.makeText) .show( ) ;
D) Toast.show(MainActivity.this, "A toast message", Toast.makeTest) .LENGTH_LONG;
Correct Answer:

Verified
Correct Answer:
Verified
Q24: The isChecked method makes use of the
Q25: When two Strings are compared, they are
Q26: Launcher icons form the first impression of
Q27: In what are RadioButton controls usually used
Q28: Which symbol is the operator for "equal
Q30: The hexadecimal color code for red is
Q31: When more than one condition is included
Q32: The following condition is valid: (6 ||
Q33: What is a common mistake made when
Q34: When does a toast notification disappear from