- VB.Net - Home
- VB.Net - Overview
- VB.Net - Environment Setup
- VB.Net - Program Structure
- VB.Net - Basic Syntax
- VB.Net - Data Types
- VB.Net - Variables
- VB.Net - Constants
- VB.Net - Modifiers
- VB.Net - Statements
- VB.Net - Directives
- VB.Net - Operators
- VB.Net - Decision Making
- VB.Net - Loops
- VB.Net - Strings
- VB.Net - Date & Time
- VB.Net - Arrays
- VB.Net - Collections
- VB.Net - Functions
- VB.Net - Subs
- VB.Net - Classes & Objects
- VB.Net - Exception Handling
- VB.Net - File Handling
- VB.Net - Basic Controls
- VB.Net - Dialog Boxes
- VB.Net - Advanced Forms
- VB.Net - Event Handling
- VB.Net - Regular Expressions
- VB.Net - Database Access
- VB.Net - Excel Sheet
- VB.Net - Send Email
- VB.Net - XML Processing
- VB.Net - Web Programming
- VB.Net Useful Resources
- VB.Net - Quick Guide
- VB.Net - Useful Resources
- VB.Net - Discussion
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.
Q 1 - Which of the following is a true about Object in VB.NET?
A - Object variable size is 4 bytes on 32-bit platform.
B - Object variable size is 8 bytes on 64-bit platform.
Answer : D
Explanation
All of the above options are correct.
Q 2 - Which of the following accesss modifier specifies that an attribute at the beginning of a source file applies to the entire assembly?
Answer : B
Explanation
Assembly − Specifies that an attribute at the beginning of a source file applies to the entire assembly.
Q 3 - Which of the following accesss modifier enables you to specify behavior for properties of anonymous types?
Answer : C
Explanation
Key − The Key keyword enables you to specify behavior for properties of anonymous types.
Q 4 - Which of the following accesss modifier specifies that a procedure argument can be omitted when the procedure is called?
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 allows you to pass an arbitrary number of arguments to the procedure?
Answer : C
Explanation
ParamArray − ParamArray allows you to pass an arbitrary number of arguments to the procedure. A ParamArray parameter is always declared using ByVal.
Q 6 - Which of the following statement declares and defines one or more constants?
Answer : B
Explanation
Const − Declares and defines one or more constants.
Q 7 - Which of the following statement declares a user-defined event?
Answer : A
Explanation
Event − Declares a user-defined event.
Q 8 - Which of the following operator uses short-circuit evaluation to conditionally return one of two values?
Answer : A
Explanation
If − It uses short-circuit evaluation to conditionally return one of two values. The If operator can be called with three arguments or with two arguments.
Q 9 - Which of the following property of Array class in VB.NET gets the rank (number of dimensions) of the Array?
Answer : A
Explanation
Rank gets the rank (number of dimensions) of the Array.
Q 10 - The System.SystemException class is the base class for all predefined system exception in VB.NET?
Answer : A
Explanation
The System.SystemException class is the base class for all predefined system exception.