The below question refer to the program segment. (Assume that all variables are of type int.)

```
z = 0; g = 0; s = 0; i = 0;
while (i < 50)
{
cin >> t;
s += t;
if (t >= 0)
g++;
else
z++;
i++;
}
```
The value stored in variable s at the end of the execution of the loop could best be described as the ________________ .
a. average of the numbers read
b. largest of all numbers read
c. sum of all numbers read
d. number of numbers read
e. sentinel value terminating the loop



c. sum of all numbers read

Computer Science & Information Technology

You might also like to view...

The ________ wrapping style permits text to wrap very closely around the outer edges of an image instead of the frame

Fill in the blank(s) with correct word

Computer Science & Information Technology

One benefit of using range names in formulas is

A) it directly or indirectly refers to the cell containing the formula. B) if you copy the formula, you do not have to make the cell reference absolute. C) it contains both an absolute and a relative cell reference. D) it identifies the present value of the loan.

Computer Science & Information Technology

A 3-D reference has the following structure:

A) =worksheet name!cell reference B) ="worksheet name!cell reference" C) ='worksheet name!'cell reference D) =worksheet name?cell reference

Computer Science & Information Technology

What is the name of the process through which you add a skeleton to a character in order to deform it?

A. Rigging B. Boning C. Structuring D. Animating

Computer Science & Information Technology