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

8/35

Page

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

. . . . . . . . prevents you from using undeclared variable in your code.

Select an option to see the answer and solution.

. . . . . . . . data types hold either a true or false value

Select an option to see the answer and solution.

. . . . . . . . ensures every variable and named constant is declared with a data type.

Select an option to see the answer and solution.

Variable declared in a procedure have . . . . . . . . scope.

Select an option to see the answer and solution.

In vb . . . . . . . . is the extension to represent project file.

Select an option to see the answer and solution.

What is wrong with the expression "const dblPi As Double = 3.141593"?

Select an option to see the answer and solution.

A form's . . . . . . . . event is triggered when you click the Close button on its title bar.

Select an option to see the answer and solution.

Which of the following is the caption part for the following Visual Basic command?

MessageBox.Show("Delete Visual Basic?","VB.Net",MessageBoxButtons.YesNo,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).

Select an option to see the answer and solution.

Files that contain lines of text are known as . . . . . . . .

Select an option to see the answer and solution.

What is the result of the expression 10-2+20>2*14-2?

Select an option to see the answer and solution.

To change the control's Shape using the . . . . . . . . property

Select an option to see the answer and solution.

The list of items displayed by menu title are known as . . . . . . . .

Select an option to see the answer and solution.

In the following Visual Basic code, what will be in msg, if str contains "visual basic"?

Dim str as String
Dim  msg as String
If str.toUpper="VISUAL BASIC" 
   msg="VB.Net"
Else
   msg="Not Visual Basic"
EndIf

Select an option to see the answer and solution.

Passing a copy of the variable is referred to as . . . . . . . .

Select an option to see the answer and solution.

. . . . . . . . is used to delete a certain code from the code editor window.

Select an option to see the answer and solution.

The . . . . . . . . symbol is called the start /stop symbol in the flowchart.

Select an option to see the answer and solution.

. . . . . . . . is the process of finding & removing errors.

Select an option to see the answer and solution.

The . . . . . . . . show the various characteristics of selected objects or controls.

Select an option to see the answer and solution.

The . . . . . . . . is one of the most important controls as it is used to execute commands.

Select an option to see the answer and solution.

. . . . . . . . is the process of adding a number to the value stored in a value.

Select an option to see the answer and solution.