MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
How to return a value from a function in VBScript?
A
Using return keyword
B
Assign the value to the function name itself
C
Both of the above
D
None of the above
Explanation: 

Detailed explanation-1: -In VBScript, the values are returned from a function using function name. In case if you want to return two or more values, then the function name is returned with an array of values. In the calling program, the result is stored in the result variable.

Detailed explanation-2: -Assigning Values to the Variables The variable name on the left hand side followed by an equal to (=) symbol and then its value on the right hand side.

Detailed explanation-3: -Q 15-How to return a value from a function in VBScript? A-Using return keyword.

There is 1 question to complete.