• +91 9723535972
  • info@interviewmaterial.com

VB.Net Interview Questions and Answers

VB.Net Interview Questions and Answers

Question - 21 : - What is the difference between VB and VB.Net?

Answer - 21 : -

VB

VB.Net

Platform dependent

Platform Independent

VB is backward compatible

VB.Net is not backward compatible

Interpreted

Compiler Language

Exception Handling by ‘On Error…..Goto’

Exception Handling by ‘Try….Catch’

Cannot develop multi-threaded applications

Can develop multi thread applications

Question - 22 : - What is namespace?

Answer - 22 : -

 A namespace is an organized way of representing Class, Structures and interfaces present in .NET language. Namespaces are hierarchically structured index of a class library, available to all .NET Languages.               

Question - 23 : - Which namespace are used for accessing the data?

Answer - 23 : -

System.Data namespace is used for accessing and managing data from the required data source. This namespace deals only with the data from the specified database. 

Question - 24 : - What is JIT?

Answer - 24 : -

JIT is termed as Just in Time compiler which is used as a part of runtime execution environment. There are three types of JIT and they are:

  • Pre-JIT – Compiles at the time of deployment of an application
  • Econo-JIT – Compiles called methods at runtime
  • Normal JIT – Compiles called methods at runtime and they get compiled first time when called 

Question - 25 : - What is the difference between C# and VB.Net?

Answer - 25 : -

VB.Net

C#

Optional Parameters are accepted

Optional Parameters are not accepted

Not case sensitive

Case Sensitive

Nothing is used to release unmanaged resources

‘Using’ is used to release unmanaged resources

Support of Both structured and unstructured error handling

Unstructured error handling

Question - 26 : - What are the different types of assembly?

Answer - 26 : -

There are two types of assembly –

  • Private – A private assembly is normally used by a single application and it is stored in application’s directory.
  • Public – A public assembly or shared assembly is stored in Global Assembly Cache(GAC) which can be shared by many applications 

Question - 27 : - What is the difference between Namespace and Assembly?

Answer - 27 : -

Assembly is physical grouping of all units and Namespace logically groups classes. Namespace can have multiple assemblies.

Question - 28 : - What is INTERNAL keyword in .Net Framework?

Answer - 28 : -

INTERNAL keyword is one of the access specifier which will be visible in a given assembly i.e. in a DLL file. This forms a single binary component and it is visible throughout the assembly. 

Question - 29 : - What are Option Strict and Option Explicit?

Answer - 29 : -

.Net generally allows implicit conversion of any data types. In order to avoid data loss during data type conversion, Option Strict keyword is used and it ensures compile time notification of these types of conversions.

Option Explicit is the keyword used in a file to explicitly declare all variables using declare keywords like Dim, Private, Public or Protected. If undeclared variable name persists, an error occurs at compile time.

Question - 30 : - What is the use of New Keyword?

Answer - 30 : -

New keyword is used with the constructor in which it can be used as a modifier or an operator. When it is used as a modifier, it hides inherited member from the base class member. When it is used as an operator, it creates an object to invoke constructors.

Dim frm As New Form1 frm.show()


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners