Vidyalelo
Computer Science · all questions

Visual Basic MCQs: Test Your Proficiency in Visual Basic Programming
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

689

Questions

21/35

Page

Pick an option on a question to see the right answer and solution.

The . . . . . . . . is an abbreviation of the term sub procedure.

Select an option to see the answer and solution.

An object's . . . . . . . . is used to display the type, style, and size of the font, used to display the object's text.

Select an option to see the answer and solution.

. . . . . . . . object browser is used for finding out about object, properties & methods.

Select an option to see the answer and solution.

Which statement is used to create a user-defined data type?

Select an option to see the answer and solution.

What will be in text, if Intid contains 6?

Select Case Intid
Case 1
  Text="Jannet"
Case 2 to 4
  Text="Mark"
Case 5, 7
  Text="Jerry"
Case Else
  Text="Sue"
End Select

Select an option to see the answer and solution.

You should assign access keys to each of the control in the interface that contain . . . . . . . .

Select an option to see the answer and solution.

A checkbox can be directly accessed from the keyboard using a . . . . . . . .

Select an option to see the answer and solution.

Which option is used to close the IDE?

Select an option to see the answer and solution.

The subscripts are . . . . . . . . than the row and column in which the element is located.

Select an option to see the answer and solution.

The . . . . . . . . in a pattern represents a single digit.

Select an option to see the answer and solution.

The . . . . . . . . is for displaying a list of drives available in your computer

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

vb is an . . . . . . . . in which one can develop, run, test & debug applications.

Select an option to see the answer and solution.

The . . . . . . . . operator reverses the value of the condition.

Select an option to see the answer and solution.

An . . . . . . . . statement is used to assign a value to an existing variable.

Select an option to see the answer and solution.

VB is an . . . . . . . ..

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.