- 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 converts the expression to Boolean data type in VB.NET?
Answer : A
Explanation
CBool(expression) − Converts the expression to Boolean data type.
Q 2 - Which of the following converts the expression to Decimal data type in VB.NET?
Answer : B
Explanation
CDec(expression) − Converts the expression to Decimal data type.
Q 3 - Which of the following accesss modifier specifies that an argument is passed by reference?
Answer : A
Explanation
ByRef − Specifies that an argument is passed by reference, i.e., the called procedure can change the value of a variable underlying the argument in the calling code.
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 specifies that one or more declared local variables are to continue to exist and retain their latest values after termination of the procedure in which they are declared?
Answer : C
Explanation
Static − Specifies that one or more declared local variables are to continue to exist and retain their latest values after termination of the procedure in which they are declared.
Q 6 - Which of the following accesss modifier specifies that a property can be written but not read?
Answer : C
Explanation
WriteOnly − Specifies that a property can be written but not read.
Q 7 - Which of the following statement declares the name, parameters, and code that define a Function procedure?
Answer : D
Explanation
Function − Declares the name, parameters, and code that define a Function procedure.
Q 8 - Which of the following operator is applied to an operand in an asynchronous method or lambda expression to suspend execution of the method until the awaited task completes?
Answer : B
Explanation
Await − It is applied to an operand in an asynchronous method or lambda expression to suspend execution of the method until the awaited task completes.
Q 9 - Which of the following property of Array class in VB.NET gets a 32-bit integer, the total number of elements in all the dimensions of the Array?
Answer : C
Explanation
Length gets a 32-bit integer that represents the total number of elements in all the 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.