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

14/35

Page

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

. . . . . . . . method allows you to insert anywhere in the string.

Select an option to see the answer and solution.

As per the syllabus we study version of VB is . . . . . . . .

Select an option to see the answer and solution.

Object Browser are open from the . . . . . . . . or pressing the key F2. The left column of the Object Browser lists the objects and classes that are available in the projects

Select an option to see the answer and solution.

How many times will the MessageBox.Show method in the following code be processed?

For intNum As Integer = 5 To 1 Step -1
MessageBox.Show("Hi")
Next intNum

Select an option to see the answer and solution.

To delay program execution, you can use the . . . . . . . .

Select an option to see the answer and solution.

The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following loops will correctly add 100 to each array element? The intSub variable contains the number 0 before the loops are processed.

Options are not available for this question.

Select an option to see the answer and solution.

. . . . . . . . is an activity that occurs during program execution such as mouse click or keystroke.

Select an option to see the answer and solution.

To pass a variable by value, you include the keyword . . . . . . . . before the name of its corresponding parameter.

Select an option to see the answer and solution.

The . . . . . . . . statement in pseudocode acts like loop.

Select an option to see the answer and solution.

To include a percentage in arithmetic operators we use . . . . . . . .

Select an option to see the answer and solution.

To determine whether a string has specific sequence of characters, use . . . . . . . .

Select an option to see the answer and solution.

The BorderStyle property of the labels that display program output is generally set to . . . . . . . .

Select an option to see the answer and solution.

When an option box is selected, its value is set to "True" and when it is unselected; its value is set to "False".

Select an option to see the answer and solution.

What determines the Tab order?

Select an option to see the answer and solution.

. . . . . . . . is used to improve the appearance of numbers in an interface.

Select an option to see the answer and solution.

The property values of the shape control are 0, 1, and 2,3,4,5 which will make it appear as a rectangle, a square, an oval shape, a circle, a rounded rectangle and a rounded square respectively.

Select an option to see the answer and solution.

Named constants are used because . . . . . . . .

Select an option to see the answer and solution.

Reading data from a file is referred to as . . . . . . . .

Select an option to see the answer and solution.

Every variable has both a value and . . . . . . . .

Select an option to see the answer and solution.

. . . . . . . . returns a value after performing its specific task.

Select an option to see the answer and solution.