Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

How To Create Crystal Report In Vb.net With Coding?

Answer»

Just CONFIGURE the REPORT DATA SOURCE by DATABASE.

Just configure the report data source by database.

2.

What Are The Objects In Asp.net And Tell The Purpose Of Those Objects?

Answer»

Here are 5 objects in asp.net

  1. RESPONSE: This object is to response to other e.g.
  2. REQUEST: This object is request from server.
  3. Application: This object is STORE GLOBAL information of application.
  4. Session: This object used store the VALUES into variable.
  5. Server.

Here are 5 objects in asp.net

3.

When We Will Use Console?

Answer»

CONSOLE is USED only for WEB APPLICATION.

Console is used only for web application.

4.

In Vb.net How To Connect Crystal Report?

Answer»

CLICK on solution EXPLORER window right click and add to add NEW item. The window will be displaced select the crystal reports we have save in any name but extension is used .rpt EG:sss.rpt.

Click on solution explorer window right click and add to add new item. The window will be displaced select the crystal reports we have save in any name but extension is used .rpt eg:sss.rpt.

5.

How Would You Implement Inheritance Using Vb.net/c#?

Answer»

When we set out to implement a class USING inheritance, we must first start with an EXISTING class from which we will DERIVE our new subclass. This existing class, or base class, may be part of the NET system class library framework, it may be part of some other application or NET assembly, or we may create it as part of our existing application. Once we have a base class, we can then implement one or more subclasses based on that base class. Each of our subclasses will automatically have all of the methods, properties. and events of that base class including the implementation behind each method, property, and event. Our subclass can add new methods, properties, and events of its own - extending the original interface with new functionality. Additionally, a subclass can replace the methods and properties of the base class with its own new implementation - EFFECTIVELY overriding the original behavior and replacing it with new behaviors.

Essentially inheritance is a way of merging functionality from an existing class into our new subclass. Inheritance also defines rules for how these methods, properties, and events can be merged. In VB.NET we can USE implements keyword for inheritance, while in C# we can use the sign (:: ) between subclass and baseclass.

When we set out to implement a class using inheritance, we must first start with an existing class from which we will derive our new subclass. This existing class, or base class, may be part of the NET system class library framework, it may be part of some other application or NET assembly, or we may create it as part of our existing application. Once we have a base class, we can then implement one or more subclasses based on that base class. Each of our subclasses will automatically have all of the methods, properties. and events of that base class including the implementation behind each method, property, and event. Our subclass can add new methods, properties, and events of its own - extending the original interface with new functionality. Additionally, a subclass can replace the methods and properties of the base class with its own new implementation - effectively overriding the original behavior and replacing it with new behaviors.

Essentially inheritance is a way of merging functionality from an existing class into our new subclass. Inheritance also defines rules for how these methods, properties, and events can be merged. In VB.NET we can use implements keyword for inheritance, while in C# we can use the sign (:: ) between subclass and baseclass.

6.

What Is The Difference Between An Xml "fragment" And An Xml "document" ?

Answer»

An XML FRAGMENT is an XML document with no single top-level root ELEMENT To PUT it simple it is a part (fragment) of a well-formed xml document. (node) Where as a well- formed xml document must have only one root element.

An XML fragment is an XML document with no single top-level root element To put it simple it is a part (fragment) of a well-formed xml document. (node) Where as a well- formed xml document must have only one root element.

7.

Whats The Difference Between Const And Readonly?

Answer»

The readonly KEYWORD is different from the CONST keyword. A const field can only be INITIALIZED at the declaration of the field. A readonly field can be initialized either at the declaration or in a constructor. Therefore, readonly fields can have different VALUES depending on the constructor used. Also, while a const field is a compile-time constant, the readonly field can be used for runtirne constants as in the following example:

public static readonly uint [] = (uint) DateTime,Now.Ticks;

The readonly keyword is different from the const keyword. A const field can only be initialized at the declaration of the field. A readonly field can be initialized either at the declaration or in a constructor. Therefore, readonly fields can have different values depending on the constructor used. Also, while a const field is a compile-time constant, the readonly field can be used for runtirne constants as in the following example:

public static readonly uint [] = (uint) DateTime,Now.Ticks;

8.

Can You Create Enumerated Data Types In C#?

Answer»

Yes.

Yes.

9.

What Happens When You Encounter A Continue Statement Inside The For Loop?

Answer»

The code for the REST of the loop is ignored, the CONTROL is TRANSFERRED back to the beginning of the loop.

The code for the rest of the loop is ignored, the control is transferred back to the beginning of the loop.

10.

Whats The C# Equivalent Of C++ Catch (...), Which Was A Catch-all Statement For Any Possible Exception?

Answer»

A CATCH block that CATCHES the exception of TYPE SYSTEM. Exception. You can also omit the parameter data type in this case and just write catch {}.

A catch block that catches the exception of type System. Exception. You can also omit the parameter data type in this case and just write catch {}.

11.

How Do You Inherit From A Class In C#?

Answer»

PLACE a COLON and then the NAME of the base CLASS. Notice that it’s DOUBLE colon in C++.

Place a colon and then the name of the base class. Notice that it’s double colon in C++.

12.

Why Is It Not A Good Idea To Insert Code Into Initializecomponent Method When Working With Visual Studio?

Answer»

The DESIGNER will LIKELY through it AWAY, most of the CODE INSIDE lnitializeComponent is auto-generated.

The designer will likely through it away, most of the code inside lnitializeComponent is auto-generated.

13.

Explain About Visual Basic?

Answer»

Visual basic is associated with the IDE of Microsoft. It is basically useful to IMPLEMENT RAD of GUI Creation of ACTIVE X scripts are very easy and efficient through VB. Windows API can also be used to create APPLICATION on windows desktop and its applications. This was primarily designed to create applications for windows platform.

Visual basic is associated with the IDE of Microsoft. It is basically useful to implement RAD of GUI Creation of Active X scripts are very easy and efficient through VB. Windows API can also be used to create application on windows desktop and its applications. This was primarily designed to create applications for windows platform.

14.

Explain About .net?

Answer»

.NET is a Microsoft Framework and a software component. . NET has a large library of pre-coded solutions which provided developer significant HELP in developing applications with solutions ALREADY present. It OFFERS reliable SECURITY and cross platform compatibility.

.NET is a Microsoft Framework and a software component. . NET has a large library of pre-coded solutions which provided developer significant help in developing applications with solutions already present. It offers reliable security and cross platform compatibility.

15.

Name Some Of The Features Present In Vb 2005?

Answer»

Some of the FEATURES present in VB 2005 are as follows: -
*Edit and CONTINUE: It allows DEVELOPERS to modify and execute applications almost simultaneously.
*Namespace: - This provides access to VARIOUS parts of the NET framework and it also dynamically generates classes.
*Data source binding function is very useful for CLIENT server development.

Some of the features present in VB 2005 are as follows: -
*Edit and continue: It allows developers to modify and execute applications almost simultaneously.
*Namespace: - This provides access to various parts of the NET framework and it also dynamically generates classes.
*Data source binding function is very useful for client server development.

16.

Explain Briefly About Rapid Application Development Tool?

Answer»

RAPID action DEVELOPMENT tool describes about the software development process. This tool GIVES flexibility in iterative development and prototype deployment. It enhances the speed of APPLICATION development. It is ALSO used for application maintenance.

Rapid action development tool describes about the software development process. This tool gives flexibility in iterative development and prototype deployment. It enhances the speed of application development. It is also used for application maintenance.

17.

Describe About Visual Basic.net?

Answer»

This is used in conjunction with Microsoft NET platform and is a successor to visual basic SIXTH version. Visual basic is used in conjunction with.NET FRAMEWORK. This TOOL has a serious defect it is not compatible with Microsoft visual basic sixth version. It has a HUGE library which assists programmers.

This is used in conjunction with Microsoft NET platform and is a successor to visual basic sixth version. Visual basic is used in conjunction with.NET Framework. This tool has a serious defect it is not compatible with Microsoft visual basic sixth version. It has a huge library which assists programmers.

18.

What Are The Various Open Source Tool Available For Vb.net?

Answer»

When COMPARED with the rapid development of open SOURCE tools for other languages from Microsoft (C#, dc) we can say that development of tools for VB has been slow. MONO development platform is one which is implementing VB LIBRARIES and is working on a COMPILER.

When compared with the rapid development of open source tools for other languages from Microsoft (C#, dc) we can say that development of tools for VB has been slow. Mono development platform is one which is implementing VB libraries and is working on a compiler.

19.

Explain About The Performance Of Visual Basic?

Answer»

Visual basic 5 and 6 are efficient in coding the CODE to native or P-code depending upon the programmer. Portability is a major ADDITION to the performance of VB.NET and the code is also small. Additional layer is PROVIDED which interprets the code and this can be avoided by using special algorithms and native code PROGRAMMING.

Visual basic 5 and 6 are efficient in coding the code to native or P-code depending upon the programmer. Portability is a major addition to the performance of VB.NET and the code is also small. Additional layer is provided which interprets the code and this can be avoided by using special algorithms and native code programming.

20.

Compare C# And Visual Basic.net?

Answer»

.NET Frame work includes two languages which are language to IL compilers and in this C# and VB.NET are provided. The importance and flexibility of these as BETTER PROGRAMMING languages is still questionable. VISUAL basic has been updated and revised to make it object oriented whereas C has CONCEPTS from many languages such as Delphi, Java. etc and syntax from C and Java.

.NET Frame work includes two languages which are language to IL compilers and in this C# and VB.NET are provided. The importance and flexibility of these as better programming languages is still questionable. Visual basic has been updated and revised to make it object oriented whereas C has concepts from many languages such as Delphi, Java. etc and syntax from C and Java.

21.

Explain About Visual Basic.net Culture?

Answer»

VB was always a RAD tool and it was always user friendly for any TYPE of user whether professional or not. It also provided many users with shortcuts and features which made this LANGUAGE POPULAR among many users. It had its share of debugging and maintenance ISSUES of course.

VB was always a RAD tool and it was always user friendly for any type of user whether professional or not. It also provided many users with shortcuts and features which made this language popular among many users. It had its share of debugging and maintenance issues of course.

22.

Name And Explain Some Of The Exclusive Features Which Are Present In Vb?

Answer»

Some of the features which are exclusive to VB are as follows: -
1) Name space can be HIDDEN which can be disabled.
2) CERTAIN project files can be hidden and a user can show them if he intends to do.
3) Lots and lots of shortcuts are PRESENT which ease the development of programs.
4) Using the AddressOf myObject function a DELEGATE can be made.

Some of the features which are exclusive to VB are as follows: -
1) Name space can be hidden which can be disabled.
2) Certain project files can be hidden and a user can show them if he intends to do.
3) Lots and lots of shortcuts are present which ease the development of programs.
4) Using the AddressOf myObject function a delegate can be made.

23.

Name A Feature Which Is Common To All .net Languages?

Answer»

There is only one FEATURE which is common to all LANGUAGES and that is Garbage COLLECTION or GC. This feature is automated which RELIEVES DEVELOPERS of much work. This garbage is disposed only when there is need of memory or stress for memory. GC feature halts the application for few seconds before restarting it.

There is only one feature which is common to all languages and that is Garbage collection or GC. This feature is automated which relieves developers of much work. This garbage is disposed only when there is need of memory or stress for memory. GC feature halts the application for few seconds before restarting it.

24.

Name Some Of The Features Of C# Which Are Not Present In Vb.net?

Answer»

Some of the features which are not present in VB are as follows they are: -
1) It supports unsafe CODE blocks for IMPROVED performance.
2) Partial interfaces and ANONYMOUS methods.
3) Multi line comments and static classes. Etc

Some of the features which are not present in VB are as follows they are: -
1) It supports unsafe code blocks for improved performance.
2) Partial interfaces and anonymous methods.
3) Multi line comments and static classes. Etc

25.

Explain About The Keyword Must Inherit?

Answer»

This KEYWORD prevents a class from directly INSTANTIATED. This keyword forces users to CREATE references to only derived classes. This keyword is present in C# as abstract and it is very useful in creating APPLICATIONS.

This keyword prevents a class from directly instantiated. This keyword forces users to create references to only derived classes. This keyword is present in C# as abstract and it is very useful in creating applications.

26.

What Would You Do To Remove Microsoft Visual Basic Name Space?

Answer»

.NET has MANY new features and application supportive tools. To remove Microsoft visual basic name space all you have to do is to
1) Remove the import manually every time you start the project.
2) Creating a TEMPLATE which does not contain Microsoft Visual Basic NAMESPACE.
3) About new features and changes names you can refer to MSDN.

.NET has many new features and application supportive tools. To remove Microsoft visual basic name space all you have to do is to
1) Remove the import manually every time you start the project.
2) Creating a template which does not contain Microsoft Visual Basic namespace.
3) About new features and changes names you can refer to MSDN.

27.

Which Is The Tool Which Can Convert Visual Basic Old Version To .net Compatibility Version?

Answer»

There is a TOOL available which can convert old VISUAL basic functions into new .NET code. Artin soft Visual basic UPGRADE Companion is very useful in converting V13 code into NET code. This tool was developed by Artin. This tool is integrated in Visual studio.NET 2005. It handles programs such as structured handling, ERROR handling, ETC.

There is a tool available which can convert old visual basic functions into new .NET code. Artin soft Visual basic upgrade Companion is very useful in converting V13 code into NET code. This tool was developed by Artin. This tool is integrated in Visual studio.NET 2005. It handles programs such as structured handling, error handling, etc.

28.

Explain About The Feature Anonymous Type?

Answer»

Anonymous type is a FEATURE of VB.NET and it ALLOWS data types to be created from the code which requires it. This feature is PRESENT in VB as well as C#. They should be stored in variables DECLARED with the keyword VAR Dynamic TYPING is different and shouldn’t be confused with Anonymous type.

Anonymous type is a feature of VB.NET and it allows data types to be created from the code which requires it. This feature is present in VB as well as C#. They should be stored in variables declared with the keyword VAR Dynamic typing is different and shouldn’t be confused with Anonymous type.

29.

Explain About The Ruby Interface Generator?

Answer»

Ruby interface generator is primarily responsible for providing the VISUAL PART of the Visual basic and this was CLUBBED with “EB” designed for Omega database system. VBX interface was added to this feature which had the ability to load dynamic link libraries.

Ruby interface generator is primarily responsible for providing the visual part of the Visual basic and this was clubbed with “EB” designed for Omega database system. VBX interface was added to this feature which had the ability to load dynamic link libraries.

30.

What Is Datatype Conversion In Vb.net?

Answer»

CONVERT one variable type to another one is called datatype conversion we can also called this casting in VB.NET some automatically conversion is also there.
Cbool CByte CChar Cdate CDEC CDbI Cmi CLng CObj CShort CSng CStr CTYPE ASC.

Convert one variable type to another one is called datatype conversion we can also called this casting in VB.NET some automatically conversion is also there.
Cbool CByte CChar Cdate CDec CDbI Cmi CLng CObj CShort CSng CStr CType Asc.

31.

What Is Branching Logic Control In Vb.net?

Answer»

FUNCTION and subroutines are the answer. The difference in two of them is function SEND information back from where it is CALLED means function can return a VALUE but subroutines cannot do this.

Function and subroutines are the answer. The difference in two of them is function send information back from where it is called means function can return a value but subroutines cannot do this.

32.

Write The Role Of New Keyword?

Answer»

New is USED to INITIALIZE a new object. We SETS a variable to any datatype with help of New KEYWORD. The New keyword gives a value to the variable. We can ALSO uses new keyword to initialize an object variable.
Example:- dim obj as new SqlDataAdapter.

New is used to initialize a new object. We sets a variable to any datatype with help of New keyword. The New keyword gives a value to the variable. We can also uses new keyword to initialize an object variable.
Example:- dim obj as new SqlDataAdapter.

33.

How Can We Remove Handlers At Run Time?

Answer»

REMOVE HANDLER myobj.myEvent, AddressOf MyEventHandler.

Remove Handler myobj.myEvent, AddressOf MyEventHandler.

34.

What Do You Mean By Option Strict On?

Answer»

OPTION Strict On will RESTRICT the implicit TYPE casting (defalut is off in VB,NET)

Option Strict On will restrict the implicit type casting (defalut is off in vb,net)

35.

What Is The Source Code For Display The Picture In Button Click Event?

Answer»

PictureBox1. IMAGE = Image.FromFile(”C:olympicsO8_basketball .GIF”)

PictureBox1. Image = Image.FromFile(”C:olympicsO8_basketball .gif”)

36.

How Do You Define A Read Only Properly In A Class Module?

Answer»

Public Class YourClass
Private yourName As STRING
Private YOURNUMBER As Decimal
Public SUB New(breed As String)
yourName = breed
END Sub
Public ReadOnly Property Name() As String
Get
RETURN yourName
End Get
End Property

Public Class YourClass
Private yourName As String
Private yourNumber As Decimal
Public Sub New(breed As String)
yourName = breed
End Sub
Public ReadOnly Property Name() As String
Get
Return yourName
End Get
End Property

37.

What Is Non_deterministic Finalization?

Answer»

The Finalize method is actually executed by the runtime on a special thread ALLOCATED by the Garbage Collector (GC).The Finalize method is executed whenever the runtime feels it is appropriate, such as when a low-resource CONDITION occurs and this situation is often referred to as non-deterministic finalization.

The Finalize method is actually executed by the runtime on a special thread allocated by the Garbage Collector (GC).The Finalize method is executed whenever the runtime feels it is appropriate, such as when a low-resource condition occurs and this situation is often referred to as non-deterministic finalization.

38.

What Is Different Between Web.config And Machine.config And Where It Will Be?

Answer»

The settings made in the WEB. config file are APPLIED to that PARTICULAR web application only WHEREAS the settings of machine.config file are applied to the whole asp.net application.

The settings made in the web. config file are applied to that particular web application only whereas the settings of machine.config file are applied to the whole asp.net application.

39.

What Is The Difference Between .dll Extension And .exe Extension Files?

Answer»

The main DIFFERENCE between .dll and .EXE is
.dll is the in process component where it TAKE up the client’s memory SPACE to run. So the communication between the application and component (dll) is very fast.
.EXE is the Out of process component. It uses its own memory (not application memory) to run the component. The communication between the application and component is slow when compared to .dll

The main difference between .dll and .exe is
.dll is the in process component where it take up the client’s memory space to run. So the communication between the application and component (dll) is very fast.
.EXE is the Out of process component. It uses its own memory (not application memory) to run the component. The communication between the application and component is slow when compared to .dll

40.

How Vb Implements The Disconnected Architecture As Like Vb.net?

Answer»

In VB to IMPLEMENT a disconnected recordset, after you have filled the recordset with the data, set its active connection property to “Nothing”. That breaks the connection to the DATABASE. You can locally ALSO save the data of the recordset by using its Save FUNCTION.

In VB to implement a disconnected recordset, after you have filled the recordset with the data, set its active connection property to “Nothing”. That breaks the connection to the database. You can locally also save the data of the recordset by using its Save function.

41.

What Is The Use Of Console Application?

Answer»

Console Applications are command-line ORIENTED applications that ALLOW us to read characters from the console, write characters to the console and are EXECUTED in the DOS VERSION. Console Applications are WRITTEN in code and are supported by the System. 

Console Applications are command-line oriented applications that allow us to read characters from the console, write characters to the console and are executed in the DOS version. Console Applications are written in code and are supported by the System. 

42.

What Is The Difference Between Manifest And Metadata?

Answer»

MANIFEST and metadata are 2 PARTS of assembly ARCHITECTURE.
Manifest is used for storing AssemblyName, AssemblyTitle,publicKey.
Metadata contains NAMESPACES, Classes.

Manifest and metadata are 2 parts of assembly architecture.
Manifest is used for storing AssemblyName, AssemblyTitle,publicKey.
Metadata contains Namespaces, Classes.

43.

What Make .net A Language Independent Platform Options Are: 1. Msil 2. Il 3. Clr 4. Jit

Answer»

All options i.e MSIL/IL, JIT and CLR.

CLR(Common Language Runtime): CLR represents runtime environment of .NET which is responsible for EXECUTING .Net PROGRAM on the production PC. It converts MSIL / IL code to NATIVE / machine understandable code by the help of its complier known as JIT. MSIL / IL(Microsoft Intermediate Language): .Net language compliers generates IL code which is managed code as it is managed by .Net (CLR).

JIT : Â .Net (CLR) compiler the complies IL code into machine code.

All options i.e MSIL/IL, JIT and CLR.

CLR(Common Language Runtime): CLR represents runtime environment of .Net which is responsible for executing .Net program on the production PC. It converts MSIL / IL code to native / machine understandable code by the help of its complier known as JIT. MSIL / IL(Microsoft Intermediate Language): .Net language compliers generates IL code which is managed code as it is managed by .Net (CLR).

JIT : Â .Net (CLR) compiler the complies IL code into machine code.

44.

What Is The Significance Of Delegates. Where Should They Be Used? What Are The Situations Where We Require Them?

Answer»

Delegates are USED as pointer to hold the controls actually i used the delegates when there is problem in VB.Net 2005 where each control is ALREADY THREADED, to USE my personla thread on these control i used delegates
Ex:
Private Delegate Sub dd()
Dim d1 As New dd(AddressOf c1)
Dim t1 As New Threading.Thread(AddressOf THREAD1)
public sub Thread1()
r1 =
Me.Label1.BeginInvoke(d1)
Me.Label1.EndInvoke(r1)
end sub
Public Sub c1()
Me.Label1.Text = ct1
Me.Label1.Refresh()
End Sub

Delegates are used as pointer to hold the controls actually i used the delegates when there is problem in VB.Net 2005 where each control is already threaded, to use my personla thread on these control i used delegates
Ex:
Private Delegate Sub dd()
Dim d1 As New dd(AddressOf c1)
Dim t1 As New Threading.Thread(AddressOf thread1)
public sub Thread1()
r1 =
Me.Label1.BeginInvoke(d1)
Me.Label1.EndInvoke(r1)
end sub
Public Sub c1()
Me.Label1.Text = ct1
Me.Label1.Refresh()
End Sub

45.

What Is The Size Of .net Object?

Answer»

Default SIZE when a class gets loaded in memory is 8 BYTES.

Default size when a class gets loaded in memory is 8 bytes.

46.

What Is The Difference Between Datatable And Dataset?

Answer»

Data table is a collection of RECORD's that consist the SINGLE table Whenever dataset is collection of data table and it is provide INTERFACE between database and datatable 1 dataset consist multiple table.

Data table is a collection of record's that consist the single table Whenever dataset is collection of data table and it is provide interface between database and datatable 1 dataset consist multiple table.

47.

What Is The Purpose Of Using Executenonquery?

Answer»

System.Data.OleDB
It contains the objects that we use to connect to a data source via an OleDB provider , such as OleDb
Connection, OleDBCOmmand System.Data.SqlClient
It contains objects that we use to connect to a data source via Tabular data STREAM INTERFACE provided by MICROSOFT Sql Server. This can be generally used to provide better performance because it removes some of the INTERMEDIATE layers REQUIRED by the OleDB provider.

System.Data.OleDB
It contains the objects that we use to connect to a data source via an OleDB provider , such as OleDb
Connection, OleDBCOmmand System.Data.SqlClient
It contains objects that we use to connect to a data source via Tabular data stream interface provided by Microsoft Sql Server. This can be generally used to provide better performance because it removes some of the intermediate layers required by the OleDB provider.

48.

What Are The Difference Between Dispose(), Close(), Exit(), End()? When Do We Use Them?

Answer»

DISPOSE(): should release all the RESOURCES that it owns.
CLOSE():closing the application
exit():EXITING from the loop
END():stops the execution of the page/function/procedure

dispose(): should release all the resources that it owns.
close():closing the application
exit():Exiting from the loop
end():stops the execution of the page/function/procedure

49.

How Do You Use Two Datareaders At The Same Time In A Vb.net Windows Application ?

Answer»

for example:
while(datareader1.read())
while(datareader2.read())
END while
end while
this is not ALLOWED even though both datareaders have two DIFFERENT sets of DATA.

for example:
while(datareader1.read())
while(datareader2.read())
end while
end while
this is not allowed even though both datareaders have two different sets of data.

50.

What Is The Exact Defination Of "object"?

Answer»

A REAL world entity which has some specific ATTRIBUTES RELATED to its characteristics and operations or METHODS ASSOCIATED with its attributes.

A real world entity which has some specific attributes related to its characteristics and operations or methods associated with its attributes.