What is sum after the following loop terminates?

```
int sum = 0;
int item = 0;
do
{
item++;
sum += item;
if (sum > 4) break;
}
while (item < 5);
```

A. 7
B. 8
C. 6
D. 5


C. 6

Computer Science & Information Technology

You might also like to view...

The portion of memory in which a recursive computation is stored is called a/an:

a. stack frame b. activation record c. all of the above d. none of the above

Computer Science & Information Technology

mv -i ~/courses/ece345/lab[123] ~/newlabs.ece345

What will be an ideal response?

Computer Science & Information Technology

A(n) ________ is a characteristic such as bold or italics applied to a font

Fill in the blank(s) with correct word

Computer Science & Information Technology

Users employ GUI objects to ____.

A. select options B. enter data C. cause events to occur D. all of the above

Computer Science & Information Technology