What is the output of the following C++ code? 
int x = 55;int y = 5;switch (x % 7){case 0:case 1:  y++;case 2:case 3:  y = y + 2;case 4:  break;case 5:case 6:  y = y - 3;} 
cout

A. 2
B. 5
C. 8
D. 10


Answer: A

Computer Science & Information Technology

You might also like to view...

____________________ is the space between each letter.

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

Computer Science & Information Technology

Match the following terms to their meanings:

I. AND condition II. Record source III. OR condition IV. Filtering A. displays a subset of the database records B. records having either criteria value will be displayed C. queries or tables that provide underlying data for a report D. records having both criteria values will be displayed

Computer Science & Information Technology

A ____ contains massive amounts of information that can be electronically searched for specific facts or documents.

A. data warehouse B. data cube C. data plant D. data wholesaler

Computer Science & Information Technology

Corrupt Windows XP system files are keeping a PC from booting. Which of the following is the BEST option to resolve this issue?

A. Automated System Recovery B. Emergency Repair Disk C. Recovery Console D. NT Repair Disk

Computer Science & Information Technology