VB.Net Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to VB.Net. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 1 - Which of the following is an entry point method of VB.NET program?

A - Sub Main

B - function main

C - Both of the above.

D - None of the above.

Answer : A

Explanation

Sub Main indicates the entry point of VB.Net program.

Q 2 - Which of the following converts the expression to SByte data type in VB.NET?

A - CObj(expression)

B - CSByte(expression)

C - CShort(expression)

D - CSng(expression)

Answer : B

Explanation

CSByte(expression) − Converts the expression to SByte data type.

Q 3 - Which of the following accesss modifier specifies that one or more declared programming elements are accessible from within the assembly that contains their declaration, not only by the component that declares them?

A - ByRef

B - ByVal

C - Default

D - Friend

Answer : D

Explanation

Friend − Specifies that one or more declared programming elements are accessible from within the assembly that contains their declaration, not only by the component that declares them.

Q 4 - Which of the following accesss modifier specifies that a procedure argument can be omitted when the procedure is called?

A - NotOverridable

B - Optional

C - Out

D - Overloads

Answer : B

Explanation

Optional − Specifies that a procedure argument can be omitted when the procedure is called.

Q 5 - Which of the following accesss modifier specifies that one or more declared programming elements are accessible only from within their declaration context, including from within any contained types?

A - Private

B - Protected

C - Public

D - ReadOnly

Answer : A

Explanation

Private − Specifies that one or more declared programming elements are accessible only from within their declaration context, including from within any contained types.

Q 6 - Which of the following statement declares the name of a structure and introduces the definition of the variables, properties, events, and procedures that the structure comprises?

A - Structure

B - Module

C - Interface

D - Function

Answer : A

Explanation

Structure − Declares the name of a structure and introduces the definition of the variables, properties, events, and procedures that the structure comprises.

Q 7 - Which of the following statement declares a reference to a procedure implemented in an external file?

A - Sub

B - Declare

C - Operator

D - Property

Answer : B

Explanation

Declare − Declares a reference to a procedure implemented in an external file.

Q 8 - Which of the following statement causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?

A - Exit

B - Continue

C - GoTo

D - None of the above.

Answer : B

Explanation

Continue − Causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.

Q 9 - Which of the following property of Array class in VB.NET checks whether the Array has a fixed size?

A - IsFixedSize

B - IsStatic

C - Length

D - None of the above.

Answer : A

Explanation

IsFixedSize gets a value indicating whether the Array has a fixed size.

Q 10 - Which of the following block of VB.NET identifies a block of code for which particular exceptions will be activated?

A - Try

B - Catch

C - Finally

D - Throw

Answer : A

Explanation

Try − A Try block identifies a block of code for which particular exceptions will be activated. It's followed by one or more Catch blocks.

vb.net_questions_answers.htm
Advertisements