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

9/35

Page

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

MS-access or oracle is the example of . . . . . . . . software.

Select an option to see the answer and solution.

. . . . . . . . property removes the title bar elements.

Select an option to see the answer and solution.

. . . . . . . . argument in the Substring syntax specifies number of characters you want to access.

Select an option to see the answer and solution.

What value is stored in the count variable when the loop ends?

For count As Integer = 5 to 9 Step 5
MessageBox.Show("Hi")
Next count

Select an option to see the answer and solution.

Where you enter the event procedure's code?

Select an option to see the answer and solution.

The intSales array is declared as follows: Dim intSales(,) As Integer = {{1000, 1200, 900, 500, 2000}, {350, 600, 700, 800, 100}}. The intSales(1, 3) = intSales(1, 3) + 10 statement will . . . . . . . .

Select an option to see the answer and solution.

When you place . . . . . . . . control into the form and run the program, you will be able to select different drives from your compute

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

You create a Public property using a . . . . . . . . procedure.

Select an option to see the answer and solution.

What will be the output of the following Visual Basic code, If the intnumber variable is 90?

If intnumber<=100 Then
   Intnumber=intnumber*2;
Else
   Intnumber=intnumber*3;
EndIf

Select an option to see the answer and solution.

What is the result of the following statements?

Dim strCities() As String = {"Bombay", "Chennai", "Ladakh", "Tamil Nadu"}
strCities(2)="Kolkata"

Select an option to see the answer and solution.

Which of the following is false?

Select an option to see the answer and solution.

What output will be returned if the following Visual Basic code is executed?

strVisualBasic = "Example, VB.Net"
intCharIndex = strVisualBasic.IndexOf("VB")

Select an option to see the answer and solution.

Files that are read by computer are called as . . . . . . . .

Select an option to see the answer and solution.

Using a named constant is advantageous because to change a value in future, change . . . . . . . .

Select an option to see the answer and solution.

A . . . . . . . . displays a list of choices.

Select an option to see the answer and solution.

The text box's . . . . . . . . event procedure prevents user from entering a specified character.

Select an option to see the answer and solution.

What will be the output of the following Visual Basic code?

Dim intScores As Integer = {78, 83, 75, 90}
Array.Sort(intScores)
Array.Reverse(intScores)

Select an option to see the answer and solution.

Progress bar is always work with . . . . . . . .control.

Select an option to see the answer and solution.

Data in an array can be distinguished using . . . . . . . . number.

Select an option to see the answer and solution.