Solved

Which Is the Correct Way to Define a Function Named

Question 21

Multiple Choice

Which is the correct way to define a function named Square that receives an integer and returns an integer representing the square of the input value?


A) Function Square(ByVal intNum as Integer) As Integer Return
intNum * intNum
End Function

B) Function Square(ByVal intNum as Integer)
Return intNum * intNum
End Function

C) Function Square(ByVal intNum as Integer) As Double
Return intNum * intNum
End Function

D) Function Square(ByVal intNum as Integer) As Double
Dim dblAns as Double
DblAns = intNum * intNum
Return dblAns
End Function

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions