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

17 Questions Published

Questions

Question 1 True/False

You can create Command Line applications using VB.Net

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

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

  1. Num variable of Myclass is initialized to 10
  2. Run Time Error
  3. Compiler Error
  4. StackOverflow Exception
Question 3 Multiple Choice (Single Answer)

How does VB.NET instantiates the .NET object

  1. Using NEW keyword
  2. Using CREATEOBJECT keyword
  3. Using GETOBJECT keyword
  4. Both A & B
Question 4 Multiple Choice (Single Answer)

Select the keyword used to compare the object variable?

  1. And
  2. OR
  3. IS
  4. OF
Question 5 Multiple Choice (Single Answer)

Web.Config file is of the type

  1. .vb
  2. XML
  3. Resource
  4. Aspx
Question 6 True/False

OPTION exists in VB.NET

  1. True
  2. False
Question 7 True/False

A DataSet can hold any number of tables

  1. True
  2. False
Question 8 True/False

Every .NET compliant compiler generates IL:

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

Casting from reference type to value or vice versa is called as

  1. Casting of variables
  2. Boxing/Unboxing
  3. Structure & Class conversion
  4. Stack & Heap Conversion
Question 10 Multiple Choice (Single Answer)

What is the lower bound value of array in VB.NET?

  1. 0
  2. -1
  3. 2
  4. 3
Question 11 Multiple Choice (Single Answer)

How do you preserve the contents of an array from being cleared when the array is redimensioned?

  1. Using Redim Keyword
  2. Using Preserve Keyword
  3. Using Reserve Keyword
  4. None of the above
Question 12 Multiple Choice (Single Answer)

Which part of the .NET Framework provides Context for managed code?

  1. CLR
  2. .NET Context Manager
  3. CTS
  4. All of the above
Question 13 Multiple Choice (Single Answer)

Assembly manifest contains

  1. Assembly’s Identity
  2. Assembly’s Reference List
  3. Both A & B
  4. None of the above
Question 14 Multiple Choice (Single Answer)

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

  1. Runtime Error
  2. Compiler Error
  3. Compiler Throws a warning message
  4. Both A & B
Question 15 Multiple Choice (Single Answer)

What is the lower bound value of array in VB.NET?

  1. 0
  2. -1
  3. 2
  4. 3
Question 16 Multiple Choice (Single Answer)

How do you preserve the contents of an array from being cleared when the array is redimensioned?

  1. Using Redim Keyword
  2. Using Preserve Keyword
  3. Using Reserve Keyword
  4. None of the above
Question 17 Multiple Choice (Single Answer)

Which part of the .NET Framework provides Context for managed code?

  1. CLR
  2. .NET Context Manager
  3. CTS
  4. All of the above