• +91 9723535972
  • info@interviewmaterial.com

VB.Net Interview Questions and Answers

VB.Net Interview Questions and Answers

Question - 91 : - What Are The Types Of Threading Models In Vb.net ?

Answer - 91 : -

There are lot of threading model available, but we focus on Threading models that are common to win32based environments singleThreaded:There is only one thread with in the process,and it is doing all the work for the process.The process must wait for the current execution of the thread to complete before it can perform another action.
Apartment Threading (Single Threaded Apartment)Apartment threaded means there are multiple threads within the application. In single threaded apartment (STA) each thread is isolated in a separate apartment underneath the process. The process can have any number of apartments that share data through a proxy. The application defines when and for how long the thread in each apartment should execute. All requests are serialized through the Windows message queue such that only a single apartment is accessed at a time and thus only a single thread will be executing at any one time.
Free Threading (Multi Threaded Apartment)Free threaded applications were limited to programming languages such as C++ until the release of Microsoft .NET. The free threaded/Multi Threaded Apartment (MTA) model has a single apartment created underneath the process rather than multiple apartments. This single apartment holds multiple threads rather than just a single thread. No message queue is required because all of the threads are a part of the same apartment and can share data without a proxy.
The developer must provide thread synchronization as part of the code to ensure that threads do not simultaneously access the same resources.

Question - 92 : - What Are The Advantage In Vb.net And Different Between Vb And Vb.net

Answer - 92 : -

vb is not follow the oops concept. But vb.net follow the oops concept.
[Adv of VB.NET
vb is object based.vb.net is object oriented
vb use record set for database connection
vb.net use dataset for database connection]
[1. VB uses vb runtime while vb.net uses CLR
2. VB object based,vb.net is object oriented
3. VB Suports splash screen
4. VB Uses on error goto while vb.net uses Try.. Catch..Finally
5. vb.Net Supports inheritance]

Question - 93 : - What Is The Difference Between Clr & Cts?

Answer - 93 : -

CLR is the common language runtime. which is the feature makes the .net applications to run plantform independent langauge interoperability.
CTS Common type system is the part of the CLR which enable the Common Datatype system to All the .net languages.it also defines conventions to convert objects from one langauge to another

Question - 94 : -
Trace And Debug Belongs To Which Namespaces?

Answer - 94 : -

system.process.diagnostics.

Question - 95 : - Columnmapping Belongs To Which Namespaces?

Answer - 95 : -

System.Data.Common.

Question - 96 : - In Order To Get Assembly Info Whcih Namespace We Should Import?

Answer - 96 : -

system.reflection.

Question - 97 : - What Is The Difference Between Friend And Protected Friend?

Answer - 97 : -

Protected variable will be accessed in inherited class, but instance variable of class cant access protected variable.While friend variable will be accessed in inherited class as well as instance variable of class across the project.Where we need both functionality we are using protected friend scope.
[Protected --> Accessible ONLY by
1.Derived classes
2.Within the same class
Friend --> Accessible ONLY by
1.Derived classes
2.Classes in the same assembly
3.Within the same class
Protected Friend --> Accessible ONLY by
1.Derived classes
2.Classes in the same assembly
3.Within the same class]

Question - 98 : - What Is An Abstract Class?

Answer - 98 : -

It is a class which contains at least one abstract method(A method without any implementation). Other methods can have implementations. This class can not be instantiated. It can always become a base class for other classes.

Question - 99 : - What Is Shadowing?

Answer - 99 : -

When global and local varible in the same name.the local varibale in a mehod or function which use to override the global is called the shadowing.ie the Global varible is being shadowed by the local varible.

Question - 100 : - What Is The Difference Between Overriding And Overloading?

Answer - 100 : -

overloading-------having same method name with different signatures.
overriding--------methods name and signatures must be same
[OverLoading : All the method will share the same name but it differes based on the parameter, type of parameter and number of parameter
Overriding : The method in the derived class the has the same name in the base class and it changes the behaviour or functionality of the method in the base class.]


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners