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

35/35

Page

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

Object respond to an event by writing . . . . . . . .

Select an option to see the answer and solution.

If array is of String type all values are . . . . . . . . by default.

Select an option to see the answer and solution.

Which of the following statements pauses program execution for 1 second?

Select an option to see the answer and solution.

You refer to the member variable by preceding its name with the name of the . . . . . . . . in which it is defined.

Select an option to see the answer and solution.

During runtime radio button can be selected, if a radio button is already selected or not by using the . . . . . . . . property.

Select an option to see the answer and solution.

What will be in strName after the following code is executed?

strName="Joanne Hashen"
strName=strName.Insert(7,"C.");

Select an option to see the answer and solution.

What is wrong with the following statement?

Dim strCities As String = {"Bombay", "Chennai", "Ladakh", "Tamil Nadu"}

Select an option to see the answer and solution.

The items in a list box belong to a collection called the . . . . . . . .

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"
blnIsContained = strCityState.Contains("Tn")

Select an option to see the answer and solution.