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

3/35

Page

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

Which of the following is used to display a message box in Visual Basic?

Select an option to see the answer and solution.

What is the value of len in the following Visual Basic code?

Dim strVB() As String = {"Example", "Visual Basic", "VB.Net", "Visual Studio"}
Dim len As Integer
len = strVB.Length()

Select an option to see the answer and solution.

In the Visual Basic application, which of the following are listed in a properties window?

Select an option to see the answer and solution.

The . . . . . . . . include all widow property, form, project ,form layout .

Select an option to see the answer and solution.

Which of the following selects the Cat item, which appears third in the cboAnimal control?

Select an option to see the answer and solution.

A variable declared as . . . . . . . . type can store both values and it can store date values 01/01/0100 up to 12/31/9999

Select an option to see the answer and solution.

What happens when maximize box is set to true?

Select an option to see the answer and solution.

. . . . . . . . is for displaying a list of directories or folders in a selected drive

Select an option to see the answer and solution.

MDI is used to work as parents, its main property is . . . . . . . . , all the forms are open within MDI

Select an option to see the answer and solution.

What does the Start Position Property determine?

Select an option to see the answer and solution.

In . . . . . . . . , The size of array always remains the same-size doesn't change during the program execution.

Select an option to see the answer and solution.

Designers usually include graphics to . . . . . . . . a portion of screen.

Select an option to see the answer and solution.

What will be assigned to the dblAvg variable after the code has been executed?

Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub – 1
Dim intNums() As Integer = {10, 5, 7, 2}. The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.

Select an option to see the answer and solution.

A control is locked using . . . . . . . .

Select an option to see the answer and solution.

The methods which loads the form into memory . . . . . . . . it on screen.

Select an option to see the answer and solution.

Microsoft ActiveX Data Control 6 is insert from component , it is used to load ADO control.

Select an option to see the answer and solution.

VB is tool that allows you to develop application in . . . . . . . .

Select an option to see the answer and solution.

A . . . . . . . . resembles a table.

Select an option to see the answer and solution.

By which button you can display the additional items?

Select an option to see the answer and solution.

. . . . . . . . is a numeric variable used for accumulating something.

Select an option to see the answer and solution.