Examveda

In the following Visual Basic code, what will be in msg, if str contains "ik"?

Dim str as String
Dim  msg as String
If str.toUpper="IK" 
   msg="Hi"
Else
   msg="Bye"
EndIf

A. Hi

B. Bye

C. Compiler Error

D. Logical Error

Answer: Option A


This Question Belongs to Computer Science >> Visual Basic

Join The Discussion

Related Questions on Visual Basic