1 |
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>
|
2 |
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
|
3 |
While loop is also called: |
- A. Conditional loop
- B. Wend loop
- C. Counter loop
- D. Continuous loop
|
4 |
A loop with in a loop is called: |
- A. Nested loop
- B. Complex loop
- C. Infinite loop
- D. Dual loop
|
5 |
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
|
6 |
A special value that marks the end of a list of input data is called: |
- A. Terminal value
- B. Sentinel Value
- C. Loop control value
- D. Input value
|
7 |
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
|
8 |
The keyword 'break' cannot be used within: |
- A. Do-while
- B. If-else
- C. For
- D. While
|
9 |
A ________ is used to perform the same sequence of steps or automating tasks repeatedly |
- A. Macro
- B. Module
- C. Forms
- D. Reports
|
10 |
When does the code block following while (x<100) execute? |
- A. When x is less then one hundred
- B. When x is greater then one hundred
- C. When x is equal to one hundred
- D. None
|