REGISTRATION FORM KEY CONCEPTS AND
DESIGN GUIDE 2026
◉ A For...Next loop with a negative step value continues to execute
until what condition is met?
A. The counter variable is greater than the terminating value.
B. The counter variable is equal to or greater than the terminating
value.
C. The counter variable is less than the terminating value.
D. The counter variable is less than or equal to the terminating
value. Answer: C
◉ What is the value of j after the end of the following code segment?
For j As Integer = 1 to 23
lstBox.Items.Add("The counter value is " & j)
Next
A. 22
B. 23
C. 24
D. j no longer exists. Answer: D
,◉ The following two sets of code produce the same output. (T/F)
Dim num As Integer = 1
Do While num <= 5
lstBox.Items.Add("Hello")
num+= 1
Loop
Dim num As Integer = 1
Do
lstBox.Items.Add("Hello")
num += 1
Loop Until (num > 5)
A. True
B. False. Answer: A
◉ A variable declared inside a Do loop can be used or referred to
outside of the loop. (T/F)
A. True
B. False. Answer: B
,◉ A counter variable is normally incremented or decremented by 1.
(T/F)
A. True
B. False. Answer: A
◉ The value of the counter variable should not be altered within the
body of a For...Next loop. (T/F)
A. True
B. False. Answer: A
◉ The body of a For...Next loop in Visual Basic will always be
executed once no matter what the initial and terminating values are.
(T/F)
A. True
B. False. Answer: B
◉ Given that x = 2, y = 5, and z = 2, the following If block will display
"error" in the listBox 3 times.
For cntr As Integer = x to y step z
lstBox.Items.Add("error")
Next
A. True
, B. False. Answer: B
◉ In analyzing the solution to a program, you conclude that you
want to construct a loop so that the loop terminates either when (a =
20) or when (b > 15). Using a Do loop, the test condition should be
A. Do While (a <> 20) Or (b < 15)
B. Do While (a <> 20) Or (b <= 15)
C. Do While (a <> 20) And (b < 15)
D. Do While (a <> 20) And (b <= 15)
E. Do While (a = 20) And (b > 16). Answer: D
◉ What numbers will be displayed in the list box by the following
code when the button is clicked?
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim num As Integer = 6
Do Until (num >= 8)
num += 1
lstBox.Items.Add(num)
Loop
End Sub
A. 6,7
B. 6,7,8