Answer the following statements true (T) or false (F)
1. A Do While loop checks the While condition before executing the statements in the loop.
2. If the While condition in a Do While loop is false the first time it is encountered, the
statements in the loop are still executed once.
3. The following statement is valid.
Do While x <> 0
4. The following two sets of code produce the same output.
```
Dim num As Integer = 1 Dim num As Integer = 1
Do While num <= 5 Do
lstBox.Items.Add("Hello") lstBox.Items.Add("Hello")
num += 1 num += 1
Loop Loop Until (num > 5)
```
5. A loop written using the structure Do While...Loop can usually be rewritten using the
structure Do...Loop Until.
1. T
2. F
3. T
4. T
5. T
You might also like to view...
Which type of memory is very fast and is located close to the processor?
A) ROM B) DIMM C) Cache D) RAM
When records are in ____ order, it means that they are arranged one after another on the basis of the value in some field.
A. data B. median C. random D. sequential