What is incorrect about the following function?

```
Function sum(ByVal intX As Integer, ByVal intY As Integer) As Integer

Dim intAns As Integer
intAns = intX + intY
End Function
```

a. intAns should not be declared inside the Function.
b. the as Integer at the end of the Function heading should be eliminated.
c. the function does not return a value
d. parameters intA and intB should be declared as ByRef


c. the function does not return a value

Computer Science & Information Technology

You might also like to view...

An image ________ indicates the paragraph to which a selected image is attached

A) handle B) anchor C) sidebar D) menu bar

Computer Science & Information Technology

A feature that highlights information in a report, such as values above a certain criterion, is called ________

A) high/low formatting B) highlight control C) conditional formatting D) highlight formatting

Computer Science & Information Technology

What is contained in a digital certificate?

What will be an ideal response?

Computer Science & Information Technology

In ____ communication, the calling function sends data to the called function and the called function sends data to the calling function.

A. downward B. upward C. bi-directional D. lateral

Computer Science & Information Technology