- 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 Char data type in VB.NET?
Answer : C
Explanation
CChar(expression) − Converts the expression to Char data type.
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 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 a property or procedure is not implemented in this class and must be overridden in a derived class before it can be used?
Answer : B
Explanation
MustOverride − Specifies that a property or procedure is not implemented in this class and must be overridden in a derived class before it can be used.
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 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 is used to declare a delegate?
Answer : B
Explanation
Delegate − Used to declare a delegate.
Q 8 - Which of the following statement transfers control to the labeled statement?
Answer : C
Explanation
GoTo − Transfers control to the labeled statement. Though it is not advised to use GoTo statement in your program.
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 - Which of the following block of VB.NET is used to execute a given set of statements, whether an exception is thrown or not thrown?
Answer : C
Explanation
Finally − The Finally block is used to execute a given set of statements, whether an exception is thrown or not thrown. For example, if you open a file, it must be closed whether an exception is raised or not.