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

23/35

Page

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

Objects are represented by . . . . . . . . variables and . . . . . . . . properties.

Select an option to see the answer and solution.

What is wrong with the following if-else structure?

If intQuantity > 5 Then
   dblDiscountRate = .1
Else
   dblDiscountRate = .05
End If

Select an option to see the answer and solution.

The variable can be a declared by . . . . . . . .statement .

Select an option to see the answer and solution.

Which of the following declares a two-dimensional array that has three rows and four columns?

Select an option to see the answer and solution.

To create menu on MDI form, we have to select . . . . . . . .

Select an option to see the answer and solution.

The purpose of . . . . . . . . is to process code at one or more regular intervals.

Select an option to see the answer and solution.

And operator checks both the sub-conditions whereas OrElse operator does . . . . . . . .

Select an option to see the answer and solution.

What will be the content of Text after the code is executed with id=4?

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.

The . . . . . . . . argument contains the message to display inside the dialog box.

Select an option to see the answer and solution.

The Project Explorer is used to show quick reference to the various elements of a project namely form, classes and modules

Select an option to see the answer and solution.

frame is used to differentiate the one radio button group to another radio button group.

Select an option to see the answer and solution.

What will be the content of num, after code execution; if before code execution num has value 1000?

If num<=100
    num=num*2;
ElseIf num>500
   Num=num*3;
Endif

Select an option to see the answer and solution.

An array is declared using the statement Dim inventory(4) As Product. Which of the following statements assigns the number 100 to the intQuantity member variable contained in the last array element?

Select an option to see the answer and solution.

Each menu title should have an unique . . . . . . . .

Select an option to see the answer and solution.

In VB, . . . . . . . . is used to enter the more then one value in a single variable having different data types.

Select an option to see the answer and solution.

A . . . . . . . . forces a literal constant to assume a data type other than the one its form indicates.

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

ASP is a . . . . . . . . language that tells the client's browser how to render the page on the computer screen.

Select an option to see the answer and solution.

. . . . . . . . refers to the process of checking your algorithm while seated at your desk.

Select an option to see the answer and solution.

ADO is ActiveX-based, it can work in different platforms and different programming languages.

Select an option to see the answer and solution.