56.8k views
4 votes
Which of the following is false? a. A function returns only one value to the statement that invoked it. b. A Sub procedure can accept only one item of data passed to it. c. The parameterList in a procedure header is optional.

User Xyv
by
6.8k points

1 Answer

4 votes

Answer: b.

Explanation: A sub procedure

is a series of Visual Basic statements enclosed by the Sub and End Sub statements. The Sub procedure performs a task and then returns control to the calling code, but it does not return a value to the calling code.

While a Function is the named of the section of a program that performs a specific task.

The difference between a function and a procedure is that a function performs a specific action which returns a value, while a procedure performs some operation but does not return a value.

User Nil Llisterri
by
8.1k points