- VB.Net Basic Tutorial
- 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 Advanced Tutorial
- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 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 Visual Basic should marshal strings according to .NET Framework rules?
Answer : D
Explanation
Auto − The charset modifier part in the Declare statement supplies the character set information for marshaling strings during a call to the external procedure. It also affects how Visual Basic searches the external file for the external procedure name. The Auto modifier specifies that Visual Basic should marshal strings according to .NET Framework rules.
Q 4 - Which of the following accesss modifier specifies that a class can be used only as a base class and that you cannot create an object directly from it?
Answer : A
Explanation
MustInherit − Specifies that a class can be used only as a base class and that you cannot create an object directly from it.
Q 5 - Which of the following accesss modifier specifies that a variable or property can be read but not written?
Answer : D
Explanation
ReadOnly − Specifies that a variable or property can be read but not written.
Q 6 - Which of the following statement declares the name of a structure and introduces the definition of the variables, properties, events, and procedures that the structure comprises?
Answer : A
Explanation
Structure − Declares the name of a structure and introduces the definition of the variables, properties, events, and procedures that the structure comprises.
Q 7 - Which of the following statement declares the name, parameters, and code that define a Sub procedure?
Answer : A
Explanation
Sub − Declares the name, parameters, and code that define a Sub procedure.
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 property of Array class in VB.NET checks whether the Array is readonly?
Answer : B
Explanation
IsReadOnly gets a value indicating whether the Array is readonly.
Q 10 - Which of the following is true about exceptions in VB.NET?
Answer : C
Explanation
Both of the above options are correct.