Visual Basic MCQs Solved

Visual Basic MCQs Solved

When we press the tab key during the run time, then what property of controls tells the order they receive the focus?
(A). Tab index
(B). Focus number
(C). Focus order
(D). Control order
The correct answer is: A

When we are entering code, the Visual Basic Code Editor will automatically detect certain types of errors.
(A). True
(B). False
The correct answer is: A

  1. When the user clicks a button, then which of the followings is triggered?

(A). a property
(B). a method
(C). a setting
(D). an event
The correct answer is: D

What is algorithm?
(A). a mathematical formula that solves a problem.
(B). a logical sequence of steps that solve a problem.
(C). Both a and B
(D). None of these

The correct answer is: B

We can also refer Keywords as the reserved words.
(A). True
(B). False
The correct answer is: A
Visual Basic responds to events by using which of the following procedures?
(A). a code
(B). a form

(C). an event

(D). a property
The correct answer is: C

During the development of Visual Basic applications, Properties window plays an important role and its actual use is to?

(A). Graphically design program components

(B). when opening programs stored on a hard drive.
(C). to change the objects look and feel.
(D). All of these

(E). None of these
The correct answer is: C

………. is used to give the control a meaningful name in a control’s list of properties?
(A). Text
(B). ContextMenu
(C). Name
(D). ControlName
The correct answer is: C
What is Pseudocode?
(A). data that have been encoded for security.
(B). the incorrect results of a computer program.
(C). a program that doesn’t work.
(D). a description of an algorithm similar to a computer language.
The correct answer is: D
A variable declared inside an event procedure is said to not have a local scope.
(A). True
(B). False
The correct answer is: B
A variable declared outside of an event procedure is said to not have a class-level scope.
(A). True
(B). False
The correct answer is: B
If we want to continue a long statement on another line, then what key we can use?
(A). Ctrl + Enter.

(B). an ampersand character.
(C). an underscore character.

(D). None of these

The correct answer is: C

The value returned by InputBox is NOT a string?

(A). True
(B). False
The correct answer is: False
Select the arithmetic operations with the highest level of precedence?
(A). ^ exponentiation
(B). * /
(C). + –

(D). ( )
The correct answer is: A

The statement “x = 3 + 4 * 4” is executed. In this case what value will be assigned to the numeric variable x?

(A). 20
(B). 92
(C). 19
(D). 234
The correct answer is: C

……………… is a valid name for a variable?
(A). T4 Tutorials
(B). 4 Tutorials
(C). T4_Tutorials
(D). T4.Tutorials
The correct answer is: C

Keywords in Visual Basic are words that
(A). have special meaning and should not be used with variables names.
(B). are used to name controls, such as TextBox1, Command2, et(C).
(C). Can be used when naming variables.
(D). are used as prefixes for control names (such as lbl, and lst).
The correct answer is: A