What will be contained in Msg if grade entered by user is 'd'?
grade=grade.Text.ToUpper
If grade=="A"
Msg ="Excellent"
ElseIf grade=="B"
Msg="Very Good"
ElseIf grade=="C"
Msg="Good"
ElseIf grade=="D"
Msg="Fair"
Else
Msg="Fail"
EndIf
grade=grade.Text.ToUpper
If grade=="A"
Msg ="Excellent"
ElseIf grade=="B"
Msg="Very Good"
ElseIf grade=="C"
Msg="Good"
ElseIf grade=="D"
Msg="Fair"
Else
Msg="Fail"
EndIfA. Fair
B. Fail
C. Good
D. Excellent
Answer: Option A
Related Questions on Visual Basic
Which of the following extension is used to represent the project file in Visual Basic?
A. .vbp
B. .vb
C. .cls
D. .vvb
Which of the following applications can be developed using Visual Basic tool?
A. Graphical User Interface
B. Real-time
C. Character User Interface
D. All of the mentioned
In visual basic language what are the rules of a programming language called?
A. Grammar
B. Order
C. Syntax
D. Rules

Join The Discussion