Vidyalelo
Visual Basic · Q168

Visual Basic MCQs: Test Your Proficiency in Visual Basic Programming

Programming · Visual Basic · question 168

Q168

What will be the content of Text after the code is executed with id=2? If id==1 Then Text="Janet"; Elseif id==2 OrElse id==3 Then Text="Mark" ElseIF id==4 Then Text="Jerry" Else Text="Sue "; EndIf

A.
Janet
B.
Mark
Answer
C.
Jerry
D.
Sue

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board