Multiple Choice
If we were to call the MakeDouble and ChangeArg methods shown below, using the following statements, what value would be assigned to lblResult.Text?
Dim intValue As Integer = 20
ChangeArg(intValue)
LblResult.Text = MakeDouble(intValue) .ToString()
Function MakeDouble (ByVal intArg As Integer) As Integer
Return intArg * 2
End Function
Sub ChangeArg2(ByRef intArg As Integer)
' Display the value of intArg.
LstOutput.Items.Add(" ")
LstOutput.Items.Add("Inside the ChangeArg procedure, " &
"intArg is " & intArg.ToString() )
LstOutput.Items.Add("I will change the value of intArg.")
' Assign 0 to intArg.
IntArg = 0
' Display the value of intArg.
LstOutput.Items.Add("intArg is now " & intArg.ToString() )
LstOutput.Items.Add(" ")
End Sub
A) 0
B) 20
C) 40
D) (cannot be determined)
Correct Answer:

Verified
Correct Answer:
Verified
Q21: Which is the correct way to define
Q22: What is wrong with the following GetName
Q23: When a procedure finishes execution, _.<br>A) control
Q24: Which of the following does not apply
Q25: When debugging a program in break mode,
Q26: Although you can omit the ByVal keyword
Q27: Which statement is not true regarding functions?<br>A)
Q28: What is incorrect about the following function?<br><b>
Q30: What will be the value of dblSum
Q31: Which one of the following declarations uses