1 |
While loop is also called: |
Conditional loop
Wend loop
Counter loop
Continuous loop
|
2 |
If we want a user to enter exactly 20 values, which loop would be the best to use? |
While
Do-while
For
Infinite
|
3 |
This means to increase a value by one: |
Modulus
Increment
Decrement
Inc
|
4 |
This statement may be used to stop a loop's current iteration and begin once: |
Continue
Break
Terminate
Next
|
5 |
In a for statement, this expression is executed only once: |
Test
Validation
Initialization
All
|
6 |
A for statement contains three expressions: Initialization, test and: |
Assignment
Validation
Increment / decrement
All
|
7 |
A special value that marks the end of a list of input data is called: |
Terminal value
Sentinel Value
Loop control value
Input value
|
8 |
Which statement is used to move the control to the start of loop body? |
Continue
Break
Switch
Goto
|
9 |
The loop which never ends is called: |
Infinite loop
Running loop
Continuous loop
Nested loop
|
10 |
A loop with in a loop is called: |
Nested loop
Complex loop
Infinite loop
Dual loop
|
11 |
This statement causes a loop to terminate early? |
Break
Terminate
Exit
A and B
|
12 |
This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop? |
While
Do-while
For
Nested
|
13 |
Which of the following loop is called counter loop? |
For
While
Do-while
All
|
14 |
In which loop the condition comes after the body of the loop? |
While loop
Do-while loop
For loop
B and C
|
15 |
In which loop the condition comes before the body of the loop? |
While loop
Do-while loop
For loop
B and C
|
16 |
Which loop structure always executes at least once? |
Do-while
For
While
All
|
17 |
Where should be the loop control variable initialized? |
Before the loop starts
In the first statement of the loop body
In the last statement of the loop body
Anywhere in the loop body
|