What is the output of the following code? int x = 10, y = 4; do {

x = x – 2;
y = y + 4;
cout << x << “ “;
} while (y <= 16);
x = x + 1;
cout << x << “ “ << y;

a) 8 6 4 2 3 20
b) 8 6 4 5 16
c) 10 8 6 4 5 20
d) none of the above


a) 8 6 4 2 3 20

Computer Science & Information Technology

You might also like to view...

The ____ method can be used to set the ocean floor of an underwater scene.  

A. ground.setPaint() B. ground.moveAndOrientTo()  C. ground.selectUnder() D. ground.doScene()

Computer Science & Information Technology

Given the following declarations, which statement would allocate memory for the first item in the list?

struct Node { int item; Node* link; }; typedef Node* NodePtr; NodePtr head; a. head = new Node; b. head = new int; c. head->link=NULL; d. head = new NodePtr;

Computer Science & Information Technology

Recently, Frank’s computer has slowed down dramatically. He has also noticed that the time on the computer is not accurate. Frank has run several antivirus scans, but has not found an issue. Today while surfing the web, he was redirected several times to a website that he did not request. Then a BSOD error occurred on his computer, and when he turned on his computer, the antivirus software was disabled.   What kind of malware could be causing the issues on Frank’s computer?

A. Zombie B. Rootkit C. Spyware D. Ransomware

Computer Science & Information Technology

What does DREAD stand for?

What will be an ideal response?

Computer Science & Information Technology