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++;
}
```
How many times is the while statement executed?
a. Once. b. Never.
c. 49 times.
d. 50 times.
e. Until a number of 50 or larger is entered.


d. 50 times.

Computer Science & Information Technology

You might also like to view...

Which of the following statements based on this function definition is false?

def rectangle_area(length, width):
    """Return a rectangle's area."""
    return length * width
a. Each keyword argument in a call has the form parametername=value. b. The following call shows that the order of keyword arguments matters—they need to match the corresponding parameters’ positions in the function defini-tion: rectangle_area(width=5, length=10) c. In each function call, you must place keyword arguments after a function’s positional arguments—that is, any arguments for which you do not specify the parameter name. Such arguments are assigned to the function’s parameters left-to-right, based on the argument’s positions in the argument list. d. Keyword arguments can improve the readability of function calls, especially for functions with many arguments.

Computer Science & Information Technology

Click the Formulas icon in the Design tab of the Ribbon to add a calculated field to a PivotTable

Indicate whether the statement is true or false

Computer Science & Information Technology

RE: is commonly used to mean ________.

a. regarding b. receiver c. responding d. replying

Computer Science & Information Technology

Deadlock does not usually affect the entire system.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology