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

(B) accumulator

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT true regarding simple update queries?

A) The data types for each table field need to match. B) A simple update query involves updating data in one table, allowing you to specify two values, the value you want to replace and the value to use as a replacement. C) First begin with a select query that identifies the records to be updated and then change the query to an update query and click Run. D) A simple update query can be an easy way to update large amounts of data.

Computer Science & Information Technology

Which of the following statements is true about radio buttons?

A) Each radio button in a group must have the same name. B) Each radio button is a group must have the same value. C) Each radio button in a group must have a unique name. D) It does not matter if the names or values in a radio button group are the same or different.

Computer Science & Information Technology