- 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 Date data type in VB.NET?
Answer : D
Explanation
CDate(expression) − Converts the expression to Date data type.
Q 2 - Which of the following converts the expression to Object data type in VB.NET?
Answer : A
Explanation
CObj(expression) − Converts the expression to Object 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?
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 the type is covariant?
Answer : C
Explanation
Out − For generic type parameters, the Out keyword specifies that the type is covariant.
Q 5 - Which of the following accesss modifier specifies that a property or procedure overrides an identically named property or procedure inherited from a base class?
Answer : B
Explanation
Overrides − Specifies that a property or procedure overrides an identically named property or procedure inherited from a base class.
Q 6 - Which of the following statement declares the name of a module and introduces the definition of the variables, properties, events, and procedures that the module comprises?
Answer : B
Explanation
Module − Declares the name of a module and introduces the definition of the variables, properties, events, and procedures that the module comprises.
Q 7 - Which of the following directive is used for indicating a mapping between specific lines of source code and text external to the source?
Answer : B
Explanation
#ExternalSource − This directive is used for indicating a mapping between specific lines of source code and text external to the source. It is used only by the compiler and the debugger has no effect on code compilation. This directive allows including external code from an external code file into a source code file.
Q 8 - Which of the following operator declares the parameters and code that define a function lambda expression?
Answer : D
Explanation
Function Expression − It declares the parameters and code that define a function lambda expression.
Q 9 - Which of the following Collection class of VB.NET represents ordered collection of an object that can be indexed individually?
Answer : A
Explanation
ArrayList − It represents ordered collection of an object that can be indexed individually. It is basically an alternative to an array. However, unlike array, you can add and remove items from a list at a specified position using an index and the array resizes itself automatically. It also allows dynamic memory allocation, add, search and sort items in the list.
Q 10 - User-defined exception classes are derived from the ApplicationException class in VB.NET?
Answer : A
Explanation
User-defined exception classes are derived from the ApplicationException class.