The value of z 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 percentage of x multiplied by 2
b. the number of positive integers entered
c. the number of even integers entered
d. the number of odd integers entered
c. the number of even integers entered
You might also like to view...
Which of the following is not a property of class Exception?
a) HelpLink b) Source c) TargetSite d) PrintError
Objects have ________, such as color, size and weight; and they perform ________, such as moving, sleeping or drawing.
a) properties, actions b) properties, attributes c) methods, actions d) actions, properties
____ mode is always used when creating shadows and drop shadows: shadows in nature are always transparent.
A. Skew B. Multiply C. Opacity D. Shadow
The Insert Hyperlink dialog box can be used to hyperlink to a Web site or another slide within a presentation
Indicate whether the statement is true or false