1 |
Which of the following loop is called counter loop? |
- A. For
- B. While
- C. Do-while
- D. All
|
2 |
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
|
3 |
______ 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
|
4 |
Repetition structure is used to execute a statement or set of statement |
- A. Once
- B. More than one time
- C. Skip statement
- D. All
|
5 |
In a for statement, this expression is executed only once: |
- A. Test
- B. Validation
- C. Initialization
- D. All
|
6 |
Redundancy means |
- A. Duplication
- B. No-duplication
- C. Standards
- D. Microsoft office integration
|
7 |
A loop within another loop is called |
- A. Inner loop
- B. Nested loop
- C. Counter loop
- D. None
|
8 |
Semicolon is placed at the end of condition in: |
- A. While loop
- B. Do-while loop
- C. For loop
- D. All
|
9 |
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
|
10 |
If we want a user to enter exactly 20 values, which loop would be the best to use? |
- A. While
- B. Do-while
- C. For
- D. Infinite
|