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 loop can best be categorized as a _________________ .
a. counter-controlled loop
b. sentinel-controlled loop
c. general conditional loop
d. do-while loop
e. None of the above.
a. counter-controlled loop
You might also like to view...
Which of the following are valid function calls to the fabs function?
a. fabs(3.5); b. cout << fabs(3.5); c. cin >> fabs(3.5); d. fabs(cin >> x); e. a,b and c f. a and b
In the formula =SUBTOTAL(102,[PAID]), what does the word PAID represent?
A) The PAID record B) The Excel function called PAID C) The label for the resultant Total Row D) The range to be included in the calculation
The World Wide Web was originally designed to deliver:
a. high-quality multimedia. b. text documents with embedded graphics. c. data in many formats, including file transfers, chat, and email. d. streaming media formats. e. top-secret military information.
Java is a case-insensitive language.
a. true b. false