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

Which of the following is a configuration option for the ping command?

A) The IP address of the destination B) The timeout for an echo reply C) The route to take D) The default gateway of the first hop

Computer Science & Information Technology

Access controls are built on three key principles.  List and briefly define them.

What will be an ideal response?

Computer Science & Information Technology