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...

Your Word document is double-spaced unless you specify another spacing option.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Write a program to determine the size of a disk device or partition using only read(2) and lseek(2). Hint: aread of a disk device at end-of-?le returns 0, while a read past end-of-?le will usually fail

What will be an ideal response?

Computer Science & Information Technology

A wildcard character that serves as a placeholder for one or more unknown characters is the:

a. * b. ? c. /

Computer Science & Information Technology

What is decimal number 14 in hexadecimal?

A) A B) B C) C D) D E) E

Computer Science & Information Technology