VB.NET and .NET Framework Fundamentals
Test your knowledge of VB.NET language syntax and .NET Framework concepts including CLR, arrays, inheritance, boxing/unboxing, and configuration
Questions
You can create Command Line applications using VB.Net
- True
- False
What is the output of the following code in Test class Class Myclass Dim Num as Integer Private Sub New (i as integer) Num=i End sub End class Class Test Sub Main() Dim c as Myclass C=New Myclass (10) End sub End Class
- Num variable of Myclass is initialized to 10
- Run Time Error
- Compiler Error
- StackOverflow Exception
How does VB.NET instantiates the .NET object
- Using NEW keyword
- Using CREATEOBJECT keyword
- Using GETOBJECT keyword
- Both A & B
Select the keyword used to compare the object variable?
- And
- OR
- IS
- OF
Web.Config file is of the type
- .vb
- XML
- Resource
- Aspx
OPTION exists in VB.NET
- True
- False
A DataSet can hold any number of tables
- True
- False
Every .NET compliant compiler generates IL:
- True
- False
Casting from reference type to value or vice versa is called as
- Casting of variables
- Boxing/Unboxing
- Structure & Class conversion
- Stack & Heap Conversion
What is the lower bound value of array in VB.NET?
- 0
- -1
- 2
- 3
How do you preserve the contents of an array from being cleared when the array is redimensioned?
- Using Redim Keyword
- Using Preserve Keyword
- Using Reserve Keyword
- None of the above
Which part of the .NET Framework provides Context for managed code?
- CLR
- .NET Context Manager
- CTS
- All of the above
Assembly manifest contains
- Assembly’s Identity
- Assembly’s Reference List
- Both A & B
- None of the above
Whats the output of following code Class A Public Overridable Sub F() End Sub End Class Class B Inherits A Public Overridable Sub F() End Sub End Class
- Runtime Error
- Compiler Error
- Compiler Throws a warning message
- Both A & B
What is the lower bound value of array in VB.NET?
- 0
- -1
- 2
- 3
How do you preserve the contents of an array from being cleared when the array is redimensioned?
- Using Redim Keyword
- Using Preserve Keyword
- Using Reserve Keyword
- None of the above
Which part of the .NET Framework provides Context for managed code?
- CLR
- .NET Context Manager
- CTS
- All of the above