Home

Visual Basic .NET MCQ Question with Answer

Visual Basic .NET MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download Visual Basic .NET MCQ Question Answer PDF

Question No : 43
Use a _________ statement to make Visual Basic object the default object for a set of enclosed Visual Basic statements.

With
Using
Import
Inherit

Question No : 44
If Option Explicit is on then Dim i as Integer="10" will produce an error

True
False

Question No : 45
Dim a() as Integer-{1,2,3,4}is a valid statement

True
False

Question No : 46
___________ is used to pass copies of a variable while __________ is used to pass address of a variable.

Byval, Byref
Byref, Byval
Any one of the above
None of the above

Question No : 47
A function can have multiple return statements

True
False

Question No : 48
Function abc() As String
Return 10
End Function

Will produce compilation error
Will produce runtime error
The function will execute normally
None of the above

Question No : 49
On error goto lbl is a

Structured error
Unstructured error