1 |
What is the final value of x after executing the following code:<div>For (int x=0; x<10; X++)</div> |
|
2 |
The loop structure that executes at least ones is |
- A. While
- B. Do-while
- C. For
- D. All
|
3 |
One execution of a loop is known as a(n): |
- A. Cycle
- B. Duration
- C. Iteration
- D. Test
|
4 |
When is while loop more appropriate then for loop? |
- A. The terminating condition occurs unexpectedly
- B. The body of loop will be executed at least once
- C. The program will be executed at least once
- D. The number times the loop will be executed is known before the loop executes
|
5 |
The loop which never ends is called: |
- A. Infinite loop
- B. Running loop
- C. Continuous loop
- D. Nested loop
|
6 |
The loop structure in which condition comes after the body of the loop is |
- A. While
- B. Do-while
- C. For
- D. All
|
7 |
The keyword 'break' cannot be used within: |
- A. Do-while
- B. If-else
- C. For
- D. While
|
8 |
Which of the following statement can be used in C |
- A. While
- B. For
- C. Do while
- D. All
|
9 |
Repetition structure is used to execute a statement or set of statement |
- A. Once
- B. More than one time
- C. Skip statement
- D. All
|
10 |
In which loop the condition comes before the body of the loop? |
- A. While loop
- B. Do-while loop
- C. For loop
- D. B and C
|