Hi
Bye
TRUE
FALSE
Answer is Wrong!
Answer is Right!
The correct answer is A. Hi.
The expression 5*3 OrElse 3^2
evaluates to 15
. Since 15
is greater than 0, the statement If 5*3 OrElse 3^2 Then Msg="Hi" Else Msg="Bye" EndIf
will assign the string Hi
to the variable Msg
.
The expression 5*3 OrElse 3^2
is evaluated using the OrElse
operator. The OrElse
operator returns the first
5*3
, is true, so the OrElse
operator returns 5*3
.
The expression 5*3
evaluates to 15
. Since 15
is greater than 0, the statement
If 5*3 OrElse 3^2 Then Msg="Hi" Else Msg="Bye" EndIf
will assign the string Hi
to the variable Msg
.