1 |
A special value that is marks the end of a list of loop body? |
Terminal value
Sentinel value
Loop control value
Input value
|
2 |
Which statement is used to move the control to the start of loop body? |
Go to
Switch
Continue
Break
|
3 |
Which statement is used to move the control to the start of loop body? |
Continue
Break
Switch
Go to
|
4 |
A loop within a loop is called? |
Nested loop
Complex loop
Infinite loop
Dual loop
|
5 |
Which statement causes a loop to terminate early? |
Break
Terminate
Exit
A and B
|
6 |
The loop is a good choice when you how many times you want the loop to iterate in advance of entering the loop: |
While
Do while
For
Nested
|
7 |
Which of the following loop is called as counter loop? |
For
While
Do while
All
|
8 |
In which loop condition comes before the body of the loop? |
While loop
Do-while loop
For loop
B and C
|
9 |
Which loop, condition comes before the body of loop? |
While loop
Do-while loop
For loop
B and C
|
10 |
Which loop structure always executes at least once? |
Do-while
For
While
All
|
11 |
Where should be the loop control variable initialized? |
Anywhere in the loop body
In the last statement of the loop body
Before the loop starts
In the first statement of the loop body
|
12 |
Where should be the loop control variable initialized? |
Before the loop starts
Anywhere in the loop body
In the first statement of the loop body
In the last statement of the loop body
|
13 |
A counter can be defined as: |
The final value of a loop
A variable that counts loop iterations
The initial value of a lopp
The step value of a loop
|
14 |
Which of the following loop is available in C language? |
All
For
Do while
While
|
15 |
Which of the following loop is available in C language? |
While
All
Do while
For
|