Solved

Switch (LastInitial)

Question 41

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions