In the following code segment, what type of variable is counter?
Dim temp, counter, check As Integer
Do
temp = CInt(InputBox("Enter a number.") )
counter += temp
If counter = 10 Then
check = 0
End If
Loop Until (check = 0)
A) counter
B) accumulator
C) sentinel
D) loop control variable
Correct Answer:
Verified
Q4: A loop written using the structure Do
Q5: What numbers will be displayed in the
Q6: If the loop is to be executed
Q7: The following statement is valid.
Q8: How many times will HI be displayed
Q10: In analyzing the solution to a program,
Q11: _calculate the sums of numerical values in
Q12: When Visual Basic executes a Do While
Q13: The following two sets of code
Q14: The following are equivalent While and Until
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents