The value of variable y at loop exit could best be described as

Assume that all variables are of type int and that y and z
are initialized to 0.
```
for (int i = 0; i < 100; ++i) {
cin >> x;
y += x;
if ( x % 2 == 0 )
++z;
}
```
a. the sum of the values entered
b. the number of values entered
c. the largest value entered
d. the average of the values entered


a. the sum of the values entered

Computer Science & Information Technology

You might also like to view...

The Standard string library provides, among other features which of the following?

a) Overloaded + for string concatenating standard strings. b) Overloaded + for concatenating C-string values and standard strings in either order c) Input and output using the iostream library d) A standalone getline function to fetch an entire line of input into a string.

Computer Science & Information Technology

"... what is whispered in the closet shall be proclaimed from the house-tops" is a quote from what famous partners?

A. Johnson and Thomas B. Warren and Brandeis C. Clooney and O'Donnell D. Sigmund and Freud

Computer Science & Information Technology

Explain why scheduling commands can be beneficial, and detail some of the methods available for scheduling commands.

What will be an ideal response?

Computer Science & Information Technology

A ____ is a colored outline or edge.?

A. ?border B. ?stroke C. ?blended border D. ?moiré pattern

Computer Science & Information Technology