- 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 basic data type in VB.NET?
Answer : D
Explanation
All of the above are basic data types.
Q 2 - Which of the following converts the expression to Integer data type in VB.NET?
Answer : C
Explanation
CInt(expression) − Converts the expression to Integer 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 indicates that a conversion operator (CType) converts a class or structure to a type that might not be able to hold some of the possible values of the original class or structure?
Answer : C
Explanation
Narrowing − Indicates that a conversion operator (CType) converts a class or structure to a type that might not be able to hold some of the possible values of the original class or structure.
Q 5 - Which of the following accesss modifier specifies that one or more declared programming elements are accessible only from within their declaration context, including from within any contained types?
Answer : A
Explanation
Private − Specifies that one or more declared programming elements are accessible only from within their declaration context, including from within any contained types.
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 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 statement terminates the loop or select case statement and transfers execution to the statement immediately following the loop or select case?
Answer : A
Explanation
Exit − Terminates the loop or select case statement and transfers execution to the statement immediately following the loop or select case.
Q 9 - Which of the following Collection class of VB.NET represents a first-in, first out collection of object?
Answer : A
Explanation
Queue − It represents a first-in, first out collection of object. It is used when you need a first-in, first-out access of items. When you add an item in the list, it is called enqueue, and when you remove an item, it is called deque.
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.