REGISTRATION FORM PRACTICE AND
WALKTHROUGH 2026
◉ What happens to a variable declared locally inside an event
procedure or loop block after the procedure terminates?
A. It is reset to its default value.
B. It loses its value temporarily, but regains that value when the
procedure executes again.
C. It ceases to exist after the procedure or loop block ends.
D. It maintains its value even after the block ends.. Answer: C
◉ How many times is the code in the body of a postest loop
guaranteed to execute?
A. 0
B. 1
C. 2
D. 3. Answer: B
◉ How many times is the code in the body of a pretest loop
guaranteed to execute?
A. 0
,B. 1
C. 2
D. 3. Answer: A
◉ How many times will the word "Happy" appear in the list box
when the following code is executed?
Dim index As Integer
Do
lstBox.Items.Add("Happy")
index += 1
Loop While index > 3
A. 0
B. 1
C. 2
D. 3
E. This is an Infinite Loop. Answer: B
◉ Which While statement is equivalent to Until num < 100?
A. While num <= 100
B. While num > 100
C. While num >= 100
D. There is no equivalent While statement.. Answer: C
,◉ Identify the accumulator in the following loop block code
segment.
Dim temp, tot, check As Integer
Do
temp = CInt(InputBox("Enter a number."))
tot += temp
check += 1
Loop Until (temp = -1)
A. temp
B. tot
C. check
D. -1. Answer: B
◉ Identify the loop control variable in the following loop block code
segment.
Dim temp, tot, check As Integer
Do
temp = CInt(InputBox("Enter a number."))
tot += temp
check += 1
Loop Until (temp = -1)
, A. temp
B. tot
C. check
D. -1. Answer: A
◉ Identify the sentinel value in the following loop block code
segment.
Dim temp, tot, check As Integer
Do
temp = CInt(InputBox("Enter a number."))
tot += temp
check += 1
Loop Until (temp = -1)
A. temp
B. tot
C. check
D. -1. Answer: D
◉ Identify the counter in the following loop block code segment.
Dim temp, tot, check As Integer
Do
temp = CInt(InputBox("Enter a number."))