Which of the following examples correctly uses an input box to assign a value to an integer, and returns the integer to the calling program using a reference parameter?

a. ```Sub GetInput(ByVal intNumber As Integer)
intNumber = CInt(InputBox(“Enter an Integer”))
End Sub
```
b. ```Sub GetInput(ByRef intNumber As Integer)
intNumber = CInt(InputBox(“Enter an Integer”))
End Sub
```
c. ```Sub GetInput(ByRef intNumber As Integer)
intNumber = CInt(InputBox(“Enter an Integer”))
Return intNumber
End Sub
```
d. ```Sub GetInput()
Dim intNumber As Integer
intNumber = CInt(InputBox(“Enter an Integer”))
End Sub
```

b. ```Sub GetInput(ByRef intNumber As Integer)
intNumber = CInt(InputBox(“Enter an Integer”))
End Sub
```

Computer Science & Information Technology

You might also like to view...

The process of accessing a computer from outside of a company is referred to as ________

A) outsourcing B) ergonomics C) hacking D) hop-off gateway

Computer Science & Information Technology

Which of the following is the MINIMUM available hard drive space requirement for installing Windows XP Professional?

A. 1GB B. 1.5GB C. 2GB D. 2.5 GB

Computer Science & Information Technology