1 |
This statement may be used to stop a loop's current iteration and begin once: |
- A. Continue
- B. Break
- C. Terminate
- D. Next
|
2 |
In which loop the condition comes after the body of the loop? |
- A. While loop
- B. Do-while loop
- C. For loop
- D. B and C
|
3 |
Which of the following is a loop statement? |
- A. If
- B. If-else
- C. Switch
- D. None
|
4 |
What is the value of "a" after the execution of the following code?<div>int a 25;</div><div>for(int c=0; c<4;c++)</div><div>a=a-1;</div><div>a=1+3;</div> |
|
5 |
The loop structure in which condition comes after the body of the loop is |
- A. While
- B. Do-while
- C. For
- D. All
|
6 |
The keyword used to transfer control from the body of loop to the start of loop is |
- A. Exit
- B. Continue
- C. Break
- D. End
|
7 |
The body of while loop with multiple statements ends with: |
- A. Right bracket ]
- B. Right brace }
- C. Comma ,
- D. Semi colon ;
|
8 |
A counter can be defined as: |
- A. The final value of a loop
- B. A variable that counts loop iterations
- C. The initial value of a loop
- D. The step value of a loop
- E. <br>
|
9 |
This means to increase a value by one: |
- A. Modulus
- B. Increment
- C. Decrement
- D. Inc
|
10 |
______ are used to move around the window if its contents do not fit on screen |
- A. menu bar
- B. Tool bar
- C. Scroll bar
- D. Status bar
|