11. The . . . . . . . . is for displaying a list of drives available in your computer
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
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
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 . . . . . . . .
16. vb is an . . . . . . . . in which one can develop, run, test & debug applications.
17. The . . . . . . . . operator reverses the value of the condition.
18. An . . . . . . . . statement is used to assign a value to an existing variable.
19. VB is an . . . . . . . ..
20. What value is stored in the intNum variable when the loop ends?
For intNum As Integer = 5 To 1 Step -1
MessageBox.Show("Hi")
Next intNum
For intNum As Integer = 5 To 1 Step -1
MessageBox.Show("Hi")
Next intNum
Read More Section(Visual Basic)
Each Section contains maximum 100 MCQs question on Visual Basic. To get more questions visit other sections.