Multiple Choice
switch (lastInitial)
{
Case 'A':
System.out.println("section 1") ;
Break;
Case 'B':
System.out.println("section 2") ;
Break;
Case 'C':
System.out.println("section 3") ;
Break;
Case 'D':
System.out.println("section 4") ;
Break;
Default:
System.out.println("section 5") ;
}Based on the code above, what is the output if lastInitial = 'C'?
A) section 1
B) section 2
C) section 3
D) section 5
Correct Answer:

Verified
Correct Answer:
Verified
Q11: Suppose P and Q are logical expressions.
Q12: The expression 'A' <= 'B' evaluates to
Q16: Suppose that you have the following code.
Q25: The output of the Java code: int
Q29: The operators != and == have the
Q32: Suppose str1 and str2 are String variables.
Q37: What is the output of the following
Q42: After the execution of the following code,
Q46: What is the output of the following
Q50: The method compareTo is part of the