Answer the following statements true (T) or false (F)

1. The following are equivalent While and Until statements.
While (num > 2) And (num < 5)
Until (num <= 2) Or (num >= 5)
2. A Do…Loop Until block is always executed at least once.
3. A counter variable is normally incremented or decremented by 1.
4. The following program uses a counter variable to force the loop to end.
```
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim r As Double = 1
Dim t As Double = 0
Do While (t < 5000)
t = 2 * t + r
r += 1
lstBox.Items.Add(t)
Loop
End Sub
```
5. The value of the counter variable should not be altered within the body of a For…Next loop.


1. T
2. T
3. T
4. F
5. T

Computer Science & Information Technology

You might also like to view...

You can mark extended quotes with the HTML _________ element.

A. hgroup B. blockquote C. paragraph D. list

Computer Science & Information Technology

What is the difference between using an opaque shape and a shape with a fill at 50% opacity in the Mask layer?

What will be an ideal response?

Computer Science & Information Technology

How do you edit an effect applied to an object?

What will be an ideal response?

Computer Science & Information Technology

A wireless device is set to look for beacon frames from the AP. This is known as ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology