1. Which of the following clauses will stop the loop when the value in
the intPopulation variable is less than the number 5000?
1. Do While intPopulation < 5000
2. Do Until intPopulation >= 5000
3. Loop While intPopulation <= 5000
4. Loop Until intPopulation < 5000
2. Which of the following statements can be used to code a loop whose instructions
you want processed 10 times?
1. only the Do ... Loop statement
2. only the For ... Next statement
3. both the Do ... Loop and For ... Next statements
3. The instructions in which loop might not be processed at all?
1. a posttest loop
2. a pretest loop
4. The instructions in which loop are always processed at least once?
1. a posttest loop
2. a pretest loop
5. How many times will the string literal “Hi” appear in the lblMsg control?
1. zero
2. one
3. four
4. five
, 6. How many times will the string literal “Hi” appear in the lblMsg control?
1. zero
2. one
3. four
4. five
7. How many times will the string literal “Hi” appear in the lblMsg control?
1. three
2. four
3. five
4. eight
8. The computer will stop processing the loop in Review Ǫuestion 7 when
the intCount variable contains which number?
1. 11
2. 12
3. 13
4. 14
9. In addition to the sequence structure, which of the following control structures is
used in the flowchart shown in Figure 5-46?
Figure 5-46
the intPopulation variable is less than the number 5000?
1. Do While intPopulation < 5000
2. Do Until intPopulation >= 5000
3. Loop While intPopulation <= 5000
4. Loop Until intPopulation < 5000
2. Which of the following statements can be used to code a loop whose instructions
you want processed 10 times?
1. only the Do ... Loop statement
2. only the For ... Next statement
3. both the Do ... Loop and For ... Next statements
3. The instructions in which loop might not be processed at all?
1. a posttest loop
2. a pretest loop
4. The instructions in which loop are always processed at least once?
1. a posttest loop
2. a pretest loop
5. How many times will the string literal “Hi” appear in the lblMsg control?
1. zero
2. one
3. four
4. five
, 6. How many times will the string literal “Hi” appear in the lblMsg control?
1. zero
2. one
3. four
4. five
7. How many times will the string literal “Hi” appear in the lblMsg control?
1. three
2. four
3. five
4. eight
8. The computer will stop processing the loop in Review Ǫuestion 7 when
the intCount variable contains which number?
1. 11
2. 12
3. 13
4. 14
9. In addition to the sequence structure, which of the following control structures is
used in the flowchart shown in Figure 5-46?
Figure 5-46