- 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 Byte data type in VB.NET?
Answer : B
Explanation
CByte(expression) − Converts the expression to Byte data type.
Q 2 - Which of the following converts the expression to SByte data type in VB.NET?
Answer : B
Explanation
CSByte(expression) − Converts the expression to SByte data type.
Q 3 - Which of the following accesss modifier identifies a property as the default property of its class, structure, or interface?
Answer : C
Explanation
Default − Identifies a property as the default property of its class, structure, or interface.
Q 4 - Which of the following accesss modifier specifies that a property or procedure can be overridden by an identically named property or procedure in a derived class?
Answer : A
Explanation
Overridable − Specifies that a property or procedure can be overridden by an identically named property or procedure in a derived class.
Q 5 - Which of the following accesss modifier indicates that a class or structure declaration is a partial definition of the class or structure?
Answer : D
Explanation
Partial − Indicates that a class or structure declaration is a partial definition of the class or structure.
Q 6 - Which of the following accesss modifier specifies that one or more declared member variables refer to an instance of a class that can raise events?
Answer : B
Explanation
WithEvents − Specifies that one or more declared member variables refer to an instance of a class that can raise events.
Q 7 - Which of the following statement declares the operator symbol, operands, and code that define an operator procedure on a class or structure?
Answer : C
Explanation
Operator − Declares the operator symbol, operands, and code that define an operator procedure on a class or structure.
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?
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 Collection class of VB.NET uses a key to access the elements in the collection?
Answer : B
Explanation
Hashtable − It uses a key to access the elements in the collection. A Hashtable is used when you need to access elements by using key, and you can identify a useful key value. Each item in the hash table has a key/value pair. The key is used to access the items in the collection.
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.