Given the following code fragment, what is the final value of y?

int x, y;
x = -1;
y = 0;
while(x <= 3)
{
y += 2;
x += 1;
}

a. 2
b. 10
c. 6
d. 8


b. 10

Computer Science & Information Technology

You might also like to view...

When you ________ an image or other graphical object, you reduce its size by eliminating unwanted portions

Fill in the blank(s) with correct word

Computer Science & Information Technology

Buttons, text boxes, and other tools that are found on a form are called ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The speed of storage devices and memory is defined by ______ time.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

If you do not have access to Nessus, what NMap procedure can be used to help you to gain information about remote *nix hosts?

A. script analysis B. script scanning C. snmp pinging D. range ping

Computer Science & Information Technology