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...

A ______ is the amount of memory required to store a single binary digit.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following ports are used to connect a computer to a cable modem or to a network?

A) FireWire B) Ethernet C) DVI D) HDMI

Computer Science & Information Technology

COGNITIVE ASSESSMENT What does CMOS, which provides high speeds and consumes little power, stand for?

A. cache memory on silicon B. circuit method-off-synched C. classic measured online semiconductor D. complementary metal-oxide semiconductor

Computer Science & Information Technology

Each of the following is an item that affects the cost of a particular risk treatment strategy EXCEPT:

A. cost of maintenance (labor expense to verify and continually test, maintain, train, and update) B. cost of development or acquisition (hardware, software, and services) C. cost of implementation (installing, configuring, and testing hardware, software, and services)  D. cost of IT operations (keeping systems operational during the period of treatment strategy development)

Computer Science & Information Technology