Question: QUESTION 1 A _______- controlled loop is also called a flag-controlled loop. QUESTION 2 How many lines of output will be printed by the following
QUESTION 1
A _______- controlled loop is also called a flag-controlled loop.
QUESTION 2
How many lines of output will be printed by the following program fragment? for (i = 0; i < 5; i++) for (j = 0; j < 4; j++) WriteLine("{0} {1}", i, j);
| 20 | ||
| 6 | ||
| 9 | ||
| 12 | ||
| none of the above |
QUESTION 3
How many lines of output will be printed by the following program fragment? for (i = 0; i < 5; i += 2) for (j = 0; j < 4; j = j + 2) WriteLine("{0} {1}", i, j);
| 20 | ||
| 6 | ||
| 9 | ||
| 12 | ||
| none of the above |
QUESTION 4
The sentinel value is used as the operand in the conditional expression for an indefinite loop.
True
False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
