What is the result of the following code?
?
int xNum = 0;
int yNum = 0;
do 
{
   xNum = xNum + yNum;
  yNum += 1;
   cout

A. endless loop
B. no output, the loop is never executed
C. xNum: 2 is printed
D. xNum: 0 is printed


Answer: D

Computer Science & Information Technology

You might also like to view...

List all employees in alphabetical order of surname, and then first name.

What will be an ideal response?

Computer Science & Information Technology

A(n) ____ represents a single kind of data in the database.

A. attribute B. field C. table column D. data item

Computer Science & Information Technology

In order to animate text, select the text and click the ________ tab

Fill in the blank(s) with correct word

Computer Science & Information Technology

A subclass may directly access the private instance variables of its superclass.

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

Computer Science & Information Technology