• +91 9723535972
  • info@interviewmaterial.com

VB.Net Interview Questions and Answers

VB.Net Interview Questions and Answers

Question - 31 : - What is ReDim keyword and its use?

Answer - 31 : -

Redim keyword is exclusively used for arrays and it is used to change the size of one or more dimensions of an array that has been already declared. Redim can free up or add elements to an array whenever required.

Dim intArray(7, 7) As Integer
ReDim Preserve intArray(7, 8)
ReDim intArray(7, 7)

Question - 32 : - What is jagged array in VB.Net?

Answer - 32 : - Jagged array is nothing but an array of arrays. Each entry in the array is another array that can hold any number of items.

Question - 33 : - What is Manifest?

Answer - 33 : -

A Manifest is a text file that is used to store metadata information of .NET assemblies. File type of Manifest can be saved as a type PE. Assembly Name, Version, Culture and key token can be saved as a Manifest.

Question - 34 : - What are all the differences between Dispose and Finalize()?

Answer - 34 : -

Finalize method is called by Garbage collector which helps us to make free of unmanaged resources. There are some other resources like window handles, database connections are handled by iDisposable interface.

Dispose method is handled by IDisposable interface to explicitly release unused resources. Dsipose can be called even if other references to the object are alive.

Question - 35 : - What is Garbage Collection?

Answer - 35 : -

Garbage collection is also known as automatic memory management, which is used for automatic recycling of dynamically allocated memory. Garbage collection is performed by Garbage collector which will recycle memory if it is proven that memory will be unused.

Question - 36 : - What are the types of generations in garbage collector?

Answer - 36 : -

There are three types of generations in garbage collector.

Generation 0 – This identifies a newly created object that has been never marked for collection.

Generation 1 – This identifies an object which has been marked as collection but not removed.

Generation 2 – This identifies an object that has survived more than one sweep of the Garbage collector.

Question - 37 : - What is the use of Option explicit?

Answer - 37 : -

Variable must be compulsorily declared when the Option Explicit is termed as ON. If it is OFF, variables can be used without declaration.

Question - 38 : - What is the difference between Convert.tostring and i.tostring method?

Answer - 38 : -

Convert.tostring handles Null and i.tostring does not handle null.

Question - 39 : - How many languages are supported by .Net?

Answer - 39 : -

Following are the languages supported by VB.Net:

  • C#
  • VB.Net
  • COBOL
  • Perl

Question - 40 : - What is serialization in .Net?

Answer - 40 : -

Serialization is defined as a process of converting an object to stream of bytes. This is used mainly to transport objects.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners