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 = 'E'?

A. section 2
B. section 3
C. section 4
D. section 5


Answer: D

Computer Science & Information Technology

You might also like to view...

________ is a section of code within a process that requires access to shared resources and that must not be executed while another process is in a corresponding section of code.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In OCR, each pixel is an estimate of how _______ the corresponding area is.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is NOT a way that surge protectors prevent damage from severe surges?

A) Prevent electricity from exiting to your plugged in electronics B) Burn out the backup fuse C) Trip an alarm D) Pass excess current to a ground wire

Computer Science & Information Technology

With voice chat software, speech is converted into data, which is then broken into smaller chunks called ____

A. chips B. packets C. nodes D. commands

Computer Science & Information Technology