- 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 is a true about Object in VB.NET?
A - Object variable size is 4 bytes on 32-bit platform.
B - Object variable size is 8 bytes on 64-bit platform.
Answer : D
Explanation
All of the above options are correct.
Q 2 - Which of the following accesss modifier specifies that Visual Basic should marshal all strings to American National Standards Institute (ANSI) values regardless of the name of the external procedure being declared in VB.NET?
Answer : A
Explanation
Ansi − Specifies that Visual Basic should marshal all strings to American National Standards Institute (ANSI) values regardless of the name of the external procedure being declared.
Q 3 - Which of the following accesss modifier is used in generic interfaces and delegates?
Answer : A
Explanation
In − It is used in generic interfaces and delegates.
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 declared programming element redeclares and hides an identically named element, or set of overloaded elements, in a base class?
Answer : A
Explanation
Shadows − Specifies that a declared programming element redeclares and hides an identically named element, or set of overloaded elements, in a base class.
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 is used to declare a delegate?
Answer : B
Explanation
Delegate − Used to declare a delegate.
Q 8 - Which of the following operator returns a Type object for the specified type?
Answer : C
Explanation
GetType − It returns a Type object for the specified type. The Type object provides information about the type such as its properties, methods, and events.
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 - Which of the following block of VB.NET identifies a block of code for which particular exceptions will be activated?
Answer : A
Explanation
Try − A Try block identifies a block of code for which particular exceptions will be activated. It's followed by one or more Catch blocks.