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

20/35

Page

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

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

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

Select an option to see the answer and solution.

The main Property of radio button box is . . . . . . . .

Select an option to see the answer and solution.

Text that cannot be changed by the user is termed as . . . . . . . . text.

Select an option to see the answer and solution.

The main property of . . . . . . . ., is LoadPicture and resize the picture .

Select an option to see the answer and solution.

While entering a numeric literal constant you need not enter a . . . . . . . .

Select an option to see the answer and solution.

The convention is to use . . . . . . . . case for classname.

Select an option to see the answer and solution.

What will the following code display in the lblSum control?

Dim intSum As Integer
Dim intY As Integer
Do While intY < 3
For intX As Integer = 1 To 4
intSum = intSum + intX
Next intX
intY = intY + 1
Loop
lblSum.Text = Convert.ToString(intSum)

Select an option to see the answer and solution.

Radio buttons are used to . . . . . . . .

Select an option to see the answer and solution.

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

strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("TN")

Select an option to see the answer and solution.

How many times will the MessageBox.Show method in the following code be processed?

intCount =0;
Do
MessageBox.Show("Hello")
intCount += 1
Loop While intCount > 3

Select an option to see the answer and solution.

Which of the following instructs a function to return the contents of the decStateTax variable?

Select an option to see the answer and solution.

A . . . . . . . . is a word that has special meaning in computer language.

Select an option to see the answer and solution.

The . . . . . . . . event occurs when the user either types a value in the text portion of a combo box or selects a different item in the list portion.

Select an option to see the answer and solution.

. . . . . . . . are open from the View menu or pressing the key F2. The left column of the Object Browser lists the objects and classes that are available in the projects

Select an option to see the answer and solution.

. . . . . . . . capitalization is used for menu item captions.

Select an option to see the answer and solution.

In Visual Basic . . . . . . . . is used for coding single-alternative and dual-alternative selection structures.

Select an option to see the answer and solution.

Which property is used to view the full image in the Picture Box?

Select an option to see the answer and solution.

The items listed in the Call statement are referred to as . . . . . . . .

Select an option to see the answer and solution.

Which of the following type of constant is ControlChars.NewLine constant?

Select an option to see the answer and solution.

The . . . . . . . . displays the most commonly used items.

Select an option to see the answer and solution.