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

Match the following terms to their meanings:

I. Contains frequently updated content published by a Web site A. RSS viewer II. A Web site that displays news of interest to a particular group B. portal III. A program that displays feeds to which you have subscribed C. XML feed IV. Small text files that Web sites put on your computer D. cookies V. An online journal used to publish personal information E. Web log

Computer Science & Information Technology

All of the following are true about SharePoint site templates EXCEPT:

A) The team site template is flexible enough to be used for most sites in the site collection. B) A community site template is a discussion-driven site where content can be searched, sorted, and rated. C) A wiki site template brings all status, communication, and artifacts relevant to a project into one place. D) A blog template allows for posting ideas with inherent commenting tools for site visitor use.

Computer Science & Information Technology