- 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
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 correct about VB.NET?
Answer : D
Explanation
All of the above options are correct.
Q 2 - Which of the following converts the expression to Decimal data type in VB.NET?
Answer : B
Explanation
CDec(expression) − Converts the expression to Decimal data type.
Q 3 - Which of the following accesss modifier enables you to specify behavior for properties of anonymous types?
Answer : C
Explanation
Key − The Key keyword enables you to specify behavior for properties of anonymous types.
Q 4 - Which of the following accesss modifier specifies that a property or procedure cannot be overridden in a derived class?
Answer : A
Explanation
NotOverridable − Specifies that a property or procedure cannot be overridden in a derived class.
Q 5 - Which of the following accesss modifier specifies that one or more declared local variables are to continue to exist and retain their latest values after termination of the procedure in which they are declared?
Answer : C
Explanation
Static − Specifies that one or more declared local variables are to continue to exist and retain their latest values after termination of the procedure in which they are declared.
Q 6 - Which of the following accesss modifier specifies that Visual Basic should marshal all strings to Unicode values regardless of the name of the external procedure being declared?
Answer : D
Explanation
Unicode − Specifies that Visual Basic should marshal all strings to Unicode values regardless of the name of the external procedure being declared.
Q 7 - Which of the following statement declares the name of an interface and introduces the definitions of the members that the interface comprises?
Answer : C
Explanation
Interface − Declares the name of an interface and introduces the definitions of the members that the interface comprises.
Q 8 - Which of the following operator uses short-circuit evaluation to conditionally return one of two values?
Answer : A
Explanation
If − It uses short-circuit evaluation to conditionally return one of two values. The If operator can be called with three arguments or with two arguments.
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 is true about System.ApplicationException class in VB.NET?
A - The System.ApplicationException class supports exceptions generated by application programs.
B - Exceptions defined by the programmers should derive from this class.
Answer : C
Explanation
Both of the above options are correct.
To Continue Learning Please Login
Login with Google