Which answer is correct for these two sub procedures?
Sub A()
Dim lngA As Integer
lngA = 10
If lngA > 5 Then
MsgBox "Z"
ElseIf lngA > 6 Then
MsgBox "Y"
End If
End Sub
Sub B()
Dim lngA As Integer
lngA = 10
If lngA > 5 Then
MsgBox "Z"
End If
If lngA > 6 Then
MsgBox "Y"
End If
End Sub
Answer
a. Running sub procedure A would display 1 message box
Running sub procedure B would display 1 message box
b. Running sub procedure A would display 1 message box
Running sub procedure B would display 2 message boxes
c. Running sub procedure A would display 2 message boxes
Running sub procedure B would display 1 message box
d. Running sub procedure A would display 2 message boxes
Running sub procedure B would display 2 message boxes