Describe precisely the output produced by the following segment for the inputs 4 and –2.

What will be an ideal response?

```
Dim last, i As Integer
last = CInt(InputBox("Enter terminating value:"))
i = 0
Do While (i <= last)
lstBox.Items.Add(i)
i += 1
Loop
(Input 4): 0 1 2 3 4
(Input –2): No output
```

Computer Science & Information Technology

You might also like to view...

If there is no match when a Lookup function is employed, the ________ error value occurs

A) #VALUE B) #NAME? C) #REF! D) #N/A

Computer Science & Information Technology

If the following pseudocode was coded and run, what would display, given that rate = 8?

``` Select rate Case 10: Display "A" Case 9: Case 8: Display "B" Case 7: Case 6: Display "C" Default: Display "Rating not possible." End Select ``` a. A b. B c. C d. Rating not possible.

Computer Science & Information Technology