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

15/35

Page

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

Each of the options on the submenu are referred to as . . . . . . . .

Select an option to see the answer and solution.

Which of the following declares a five-element one-dimensional array?

Select an option to see the answer and solution.

The . . . . . . . . validator is used to verify that an entry matches a specific pattern.

Select an option to see the answer and solution.

The data type of the value assigned should be same as . . . . . . . .

Select an option to see the answer and solution.

Use the . . . . . . . . to verify the tab order control in the interface.

Select an option to see the answer and solution.

. . . . . . . . means adding a number to the value stored in the accumulator or counter.

Select an option to see the answer and solution.

Each menu item should have an . . . . . . . . that is unique within its menu.

Select an option to see the answer and solution.

The code in an application can be broken into logical component by . . . . . . . . process

Select an option to see the answer and solution.

In VB, Standard modules and Class modules. provides three kind of property procedures but following not include in this

Select an option to see the answer and solution.

String data type can store from zero to . . . . . . . . Unicode characters.

Select an option to see the answer and solution.

Variables are used to temporarily store data during execution of application.

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
intNums(intSub) = intTotal + intTotal
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub
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.

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

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.

A simple variable, also called as a . . . . . . . . variable, is one that is unrelated to any other variable in memory.

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

. . . . . . . . is used to visually group together related items on a menu or submenu.

Select an option to see the answer and solution.

Which property in the property list is used to change the text, style or size of the control's text?

Select an option to see the answer and solution.

What is the array of these statements?

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

Select an option to see the answer and solution.

A button's caption is entered using . . . . . . . .

Select an option to see the answer and solution.

A . . . . . . . . Web page contains controls with which the user can interact.

Select an option to see the answer and solution.