- 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 Mock Test
This section presents you various set of Mock Tests related to VB.Net. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
VB.Net Mock Test I
Q 1 - Which of the following is correct about VB.NET?
Answer : C
Explanation
None of the above options are correct.
Q 2 - Which of the following is correct about VB.NET?
Answer : D
Explanation
All of the above options are correct.
Q 3 - Which of the following is an entry point method of VB.NET program?
Answer : A
Explanation
Sub Main indicates the entry point of VB.Net program.
Q 4 - Which of the following is a basic data type in VB.NET?
Answer : D
Explanation
All of the above are basic data types.
Q 5 - 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 6 - Which of the following converts the expression to Boolean data type in VB.NET?
Answer : A
Explanation
CBool(expression) − Converts the expression to Boolean data type.
Q 7 - Which of the following converts the expression to Byte data type in VB.NET?
Answer : B
Explanation
CByte(expression) − Converts the expression to Byte data type.
Q 8 - 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 9 - Which of the following converts the expression to Date data type in VB.NET?
Answer : D
Explanation
CDate(expression) − Converts the expression to Date data type.
Q 10 - Which of the following converts the expression to Double data type in VB.NET?
Answer : A
Explanation
CDbl(expression) − Converts the expression to Double data type.
Q 11 - 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 12 - 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 13 - Which of the following converts the expression to Long data type in VB.NET?
Answer : D
Explanation
CLng(expression) − Converts the expression to Long data type.
Q 14 - Which of the following converts the expression to Object data type in VB.NET?
Answer : A
Explanation
CObj(expression) − Converts the expression to Object data type.
Q 15 - Which of the following converts the expression to SByte data type in VB.NET?
Answer : B
Explanation
CSByte(expression) − Converts the expression to SByte data type.
Q 16 - Which of the following converts the expression to Short data type in VB.NET?
Answer : C
Explanation
CShort(expression) − Converts the expression to Short data type.
Q 17 - Which of the following converts the expression to Single data type in VB.NET?
Answer : D
Explanation
CSng(expression) − Converts the expression to Single data type.
Q 18 - Which of the following converts the expression to String data type in VB.NET?
Answer : A
Explanation
CStr(expression) − Converts the expression to String data type.
Q 19 - 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 20 - 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 21 - Which of the following accesss modifier indicates that the method or lambda expression that it modifies is asynchronous?
Answer : C
Explanation
Async − Indicates that the method or lambda expression that it modifies is asynchronous. Such methods are referred to as async methods. The caller of an async method can resume its work without waiting for the async method to finish.
Q 22 - 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 23 - Which of the following accesss modifier specifies that an argument is passed by reference?
Answer : A
Explanation
ByRef − Specifies that an argument is passed by reference, i.e., the called procedure can change the value of a variable underlying the argument in the calling code.
Q 24 - Which of the following is true about catch block in VB.NET?
B - The catch keyword indicates the catching of an exception.
Answer : C
Explanation
Both of the above options are correct.
Q 25 - Which of the following accesss modifier specifies that an argument is passed in such a way that the called procedure or property cannot change the value of a variable underlying the argument in the calling code?
Answer : B
Explanation
ByVal − Specifies that an argument is passed in such a way that the called procedure or property cannot change the value of a variable underlying the argument in the calling code.
Answer Sheet
Question Number | Answer Key |
---|---|
1 | C |
2 | D |
3 | A |
4 | D |
5 | D |
6 | A |
7 | B |
8 | C |
9 | D |
10 | A |
11 | B |
12 | C |
13 | D |
14 | A |
15 | B |
16 | C |
17 | D |
18 | A |
19 | A |
20 | B |
21 | C |
22 | D |
23 | A |
24 | C |
25 | B |