Multiple Choice
For the code segment below: switch( q )
{
Case 1:
System.out.println( "apple" ) ;
Break;
Case 2:
System.out.println( "orange" ) ;
Break;
Case 3:
System.out.println( "banana" ) ;
Break;
Case 4:
System.out.println( "pear" ) ;
Case 5:
System.out.println( "grapes" ) ;
Default:
System.out.println( "kiwi" ) ;
} // end switch
Which of the following values for q will result in kiwi being included in the output?
A) 2.
B) Anything greater than or equal to 4.
C) 1.
D) 3.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Which of the following will not help
Q2: Which of the following statements about the
Q3: Consider the following two Java code segments:
Q6: The control variable of a counter-controlled loop
Q11: Which case of the following would warrant
Q16: Consider the code segment below. if (
Q17: Which expression is equivalent to if (!(grade
Q20: Which of the following for-loop control headers
Q21: Suppose variable gender is MALE and age
Q26: Which of the following will count down