What will be the output of the following program when the button is clicked on? Private Sab btnDisplay_Click .
Dim var1, var2, num As Integer
var1
var2
num
Add (num)
txtBox. Text = CStr (num)
End Sub
Sub Add (ByRef num As Integer)
Dim var1, var2 As Integer
num = var1 + var2
End Sub
A) 0
B) 12
C) 6
D) None of the above
Correct Answer:
Verified
Q47: Variables and named constants declared inside a
Q48: You can determine whether a variable is
Q49: Suppose a variable is passed by value
Q50: The declaration statement for a class-level variable
Q51: Sub procedures can be individually tested before
Q53: In modular programming, a driver is
A) another
Q54: What happens to a variable declared locally
Q55: Breaking up a large problem into smaller
Q56: Each variable must be passed either by
Q57: A variable or named constant that is
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents