12.
What will the following code display in the lblAsterisks control?

For intX As Integer = 1 To 2
For intY As Integer = 1 To 3
lblAsterisks.Text = lblAsterisks.Text & "*"
Next intY
lblAsterisks.Text = lblAsterisks.Text &
ControlChars.NewLine
Next intX

13.
What will be contained in Msg if grade entered by user is 'd'?

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

14.
. . . . . . . . is an underscore that is immediately preceded by a space and is located at the end of the physical line of code.

15.
The size property contains two numbers separated by comma, and a space. These numbers are . . . . . . . .

Read More Section(Visual Basic)

Each Section contains maximum 100 MCQs question on Visual Basic. To get more questions visit other sections.