Question: Answer the following short questions? 1. Consider the code given below. sub simple calc Dim num As Integer num 20 Call Double It ((num) MsgBox
1. Consider the code given below. sub simple calc Dim num As Integer num 20 Call Double It ((num) MsgBox num End Sub Sub Double It (var As Integer) var var 2 End Sub When this program is run, the following will be displayed in a message box (A) 0 (B) 2 (C) 20 (D) 40 (E) None of the above 2. Consider the code given below. sub simplecalc Dim num As Integer num 20 Call DoubleIt (num) MsgBox num End Sub Sub Double It (var As Integer) var m var 2 End Sub When this program is run, the following will be displayed in a message box: (A) (B) 2 (C) 20 (D) 40 (E) None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
