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.

51.

What Is The Difference Between A "jagged Array" And Multidimensional Array" ?can Anyone Show Me It Practically ?

Answer»

multidimentional ARRAY has same SIZE in all dimentions but jagged is the TYPE of multidimentional array which has different size for its DIMENSIONS.

int array[3][3][3]; //multidimentional array.
int array[3][1][6]; //jagged array.

multidimentional array has same size in all dimentions but jagged is the type of multidimentional array which has different size for its dimensions.

int array[3][3][3]; //multidimentional array.
int array[3][1][6]; //jagged array.

52.

What Is Misl Code?

Answer»

MSIL CODE is the Microsoft INTERMEDIATE Language. This is the code created by the CLR from the SOURCE code. This MSIL code is CONVERTED to machine/native code by JIT compiler. This machine code is actually the code which runs.

MSIL code is the Microsoft Intermediate Language. This is the code created by the CLR from the source code. This MSIL code is converted to machine/native code by JIT compiler. This machine code is actually the code which runs.

53.

What Do You Mean By Serialization And Deserialization And It's Use.

Answer»

Serilization: It is the PROCESS of maintaning object state in the form of a stream.
Deserilization: It is the process of reading the stream and construct the object.
USES:(Remoting Concept)
1) making object state PERSISTENT
2) transmitting the object from one system to another system.

Serilization: It is the process of maintaning object state in the form of a stream.
Deserilization: It is the process of reading the stream and construct the object.
Uses:(Remoting Concept)
1) making object state persistent
2) transmitting the object from one system to another system.

54.

What Is The Advantage Of Option Strict On?

Answer»

Visual Basic allows conversions of many data types to other data types. Data loss can occur when the value of one data type is converted to a data type with less precision or smaller capacity. A run-time error occurs if such a narrowing conversion fails. Option Strict ensures compile-time notification of these narrowing conversions so they can be avoided.
In addition to disallowing implicit narrowing conversions, Option Strict generates an error for late binding. An object is late bound when it is assigned to a VARIABLE that is DECLARED to be of type Object.
Because Option Strict On provides STRONG TYPING, prevents unintended type conversions with data loss, disallows late binding, and improves performance, its use is strongly recommended.

Visual Basic allows conversions of many data types to other data types. Data loss can occur when the value of one data type is converted to a data type with less precision or smaller capacity. A run-time error occurs if such a narrowing conversion fails. Option Strict ensures compile-time notification of these narrowing conversions so they can be avoided.
In addition to disallowing implicit narrowing conversions, Option Strict generates an error for late binding. An object is late bound when it is assigned to a variable that is declared to be of type Object.
Because Option Strict On provides strong typing, prevents unintended type conversions with data loss, disallows late binding, and improves performance, its use is strongly recommended.

55.

What Is The Diff Between Vb Mdi Form And .net Mdi Form?

Answer»

In VB MDI form is created by adding MDI Form to the project and adding CHILD forms by setting MDICHILD property of the child form. In .NET there is no MDI form, any form can be made a MDI parent by setting IsMdiContainer property to TRUE.
Furthermore, there are changes in the PROPERTIES, methods and basic behavior of the MDI Forms, LIKE ABILITY to SET Background Color is not available in .NET, ability to add controls to MDI form(although they don't behave properly), ActiveForm to ActiveMdiChild, Arrange method to LayoutMdi, etc.

In VB MDI form is created by adding MDI Form to the project and adding child forms by setting MDICHILD property of the child form. In .NET there is no MDI form, any form can be made a MDI parent by setting IsMdiContainer property to TRUE.
Furthermore, there are changes in the properties, methods and basic behavior of the MDI Forms, like ability to set Background Color is not available in .NET, ability to add controls to MDI form(although they don't behave properly), ActiveForm to ActiveMdiChild, Arrange method to LayoutMdi, etc.

56.

What Is Assembly In .net And What Do You Mean By Protected Class Always Present In The Same Assembly?

Answer»

ASSEMBLIES are building BLOCKS of framework. There are MAINLY two types of assemblies
a) Private ASSEMBLY
b) Shared Assembly

Assemblies are building blocks of framework. There are mainly two types of assemblies
a) Private Assembly
b) Shared Assembly

57.

How Would You Implement Inheritance Using Vb.net ?

Answer»

Using VB.NET we can create a CLASS that provides basic functionality so that other CLASSES can inherit its MEMBERS. VB.NET provides the 'Inherits' keyword to IMPLEMENT inheritance. By using the keyword 'Inherits' we can inherit the characteristics of a class into ANOTHER class.

Using VB.NET we can create a class that provides basic functionality so that other classes can inherit its members. VB.NET provides the 'Inherits' keyword to implement inheritance. By using the keyword 'Inherits' we can inherit the characteristics of a class into another class.

58.

What Is Sta In .net?

Answer»

single-threaded apartments (the apartment model process) offers a message-based paradigm for dealing with multiple objects running concurrently. It enables you to write more efficient CODE by ALLOWING a thread, while it waits for some time-consuming operation to complete, to allow another thread to be executed.

Each thread in a process that is initialized as an apartment model process, and that retrieves and dispatches window messages, is a single-threaded apartment thread. Each thread lives within its own apartment. Within an apartment, interface pointers can be passed without marshaling, and therefore, all objects in one single-threaded apartment thread communicate directly.

A LOGICAL grouping of related objects that all execute on the same thread, and therefore must have synchronous execution, could live on the same single-threaded apartment thread. However, an apartment model object cannot reside on more than one thread. Calls to objects in other processes must be made within the context of the owning process, so distributed COM switches THREADS for you AUTOMATICALLY when you call on a proxy.

single-threaded apartments (the apartment model process) offers a message-based paradigm for dealing with multiple objects running concurrently. It enables you to write more efficient code by allowing a thread, while it waits for some time-consuming operation to complete, to allow another thread to be executed.

Each thread in a process that is initialized as an apartment model process, and that retrieves and dispatches window messages, is a single-threaded apartment thread. Each thread lives within its own apartment. Within an apartment, interface pointers can be passed without marshaling, and therefore, all objects in one single-threaded apartment thread communicate directly.

A logical grouping of related objects that all execute on the same thread, and therefore must have synchronous execution, could live on the same single-threaded apartment thread. However, an apartment model object cannot reside on more than one thread. Calls to objects in other processes must be made within the context of the owning process, so distributed COM switches threads for you automatically when you call on a proxy.

59.

How To Store/retrive Images Into/from Oracle Database Using Vb.net ?

Answer»

Code for storing Image

Dim rs As New ADODB.Recordset Dim mstream As New ADODB.Stream
rs.Open "select * from StyleImage where styleNo='" & TxtStyleNo.Text & "'", db, adOpen Dynamic, adLock Optimistic
If rs.EOF = False Then
MsgBox "Stle Already EXIST in DATABASE"
Exit Sub
End If
db.Execute "exec insertintostyleimage " & MCId & "," & SCId & "," & GId & "," & CompanyId & ",'" & TxtStyleNo & "','" & TxtStyleDesc & "','" & TxtStyleCost & "','" & Img1.Picture & "','" & Usercd & "','" & Img2.Picture & "','" & cmbexportername.Text & "','" & txtexporterstyleno.Text & "'" rs.Open "select * from StyleImage where styleNo='" & TxtStyleNo.Text & "'", db, adOpenDynamic, adLockOptimistic
With rs
If .RecordCount <> 0 And Img1.Picture <> LoadPicture("") And Img2.Picture <> LoadPicture("") Then
mstream.Type = adTypeBinary
mstream.Open
fpath = CD1.FileName
mstream.LoadFromFile fpath
.Fields("imagefilebig").Value = mstream.Read
fpath = CD2.FileName
mstream.LoadFromFile fpath
.Fields("imagefilesmall").Value = mstream.Read
.Update
mstream.Close
End If
.Close
End With

code for retriving images

Dim rscat As New ADODB.Recordset Dim mstream As New ADODB.Stream rscat.Open "select style image.*, (select COMPANY name from EXPORTER where companyid=styleimage. exporterid)as expname from styleimage where companyid=" & CompanyId & " and maincatid=" & MCId & " and subcatid=" & SCId & " and catgroupid=" & GId & " and styleno='" & CmbStyleNo & "'", db, adOpenDynamic, adLockOptimistic If rscat.RecordCount > 0 Then mstream.Type = adTypeBinary
Set Img2.Picture = LoadPicture("")
If mstream.State = 1 Then mstream.Close
mstream.Open
If IsNull(rscat.Fields("Imagefilesmall")) Then
Else
mstream.Write rscat.Fields("Imagefilesmall").Value
If mstream.Size > 1 Then
mstream.SaveToFile App.Path & "temp.jpeg", adSaveCreateOverWrite
CD1.FileName = App.Path & "temp.jpeg"
Img2.Picture = LoadPicture(CD1.FileName)
mstream.Close
End If
End If

Code for storing Image

code for retriving images

60.

I Was Asked In Interview That If I Have Created A Class And I Don't Want The Class To Be Inherited By Any Other Members Without Me Which Key Or Function I Have To Use?

Answer»

VB: for CLASS NotInheritable [MyClass]
For METHOD: NotOverridable [MyMethod]
C# For class or method :sealed[MyClassMyMethod]{}

VB: for class NotInheritable [MyClass]
For method: NotOverridable [MyMethod]
C# For class or method :sealed[MyClassMyMethod]{}

61.

How To Check For A Particular Record Whether It Is Present Or Not In Dataset

Answer»

if the record is not present i WANT to DISPLAY a message as no records what is the CODE for checking
if you are using "DATAREADER" then
if DataReaderName.HasRows then
statements
else
statements
end if
if you are using "DataSet" then
if DataSetName.TABLES.("tablename").ROWS.COUNT=0 THEN
statements.
end if

if the record is not present i want to display a message as no records what is the code for checking
if you are using "DataReader" then
if DataReaderName.HasRows then
statements
else
statements
end if
if you are using "DataSet" then
if DataSetName.TABLES.("tablename").ROWS.COUNT=0 THEN
statements.
end if

62.

You Want That A Component Be Granted Full Access To The Active Directory Before It Is Loaded. Which Attributes Should You Use With The Component?name Some Of The Asp Components?

Answer»

• Ad Rotator component – a way to MANAGE advertisements on the WEB site.
CONTENT Linker component – a technique to DIRECT users through a set of pag

• Ad Rotator component – a way to manage advertisements on the web site.
• Content Linker component – a technique to direct users through a set of pag

63.

What Is The Difference Between Vb And Vb.net ?how To Insert Row By Row Data In Datagrid ? How To Work With Repeater Controls And Give Small Example Program ?

Answer»

1.Visual Basic.NET is object oriented but VB 6 is not so.
2.Visual Basic.NET supports multi THREADING but VB doesnt support.
3.Visual basic.NET supports Managed Code extensions but VB doesnt support.
4.Both Vb and VB.NET support command line programs.
5.Both VB and VB.NET support COM and COM+ applications.
6.VB.NET is strongly typed but VB is not so.
Dim cn As SqlConnection
Dim cmd As SqlCommand
Dim DR As SqlDataReader
Dim table As New DataTable
constructor
initialze the cn object like eg
cn = new
sqlconnection("server=name;database=name;uid=name;pwd=name;")
write it in the button .click event that add the table dynamicaaly created to datagrid
TRY
cmd = New SqlCommand
cmd.CommandType = CommandType.Text
cmd.Connection = cn
cmd.CommandText = "select * from manas"
cn.Open()
dr = cmd.ExecuteReader()
Dim i As INTEGER
For i = 0 To dr.FieldCount - 1
table.Columns.Add(i)
Next
Dim ROW As DataRow
While dr.Read()
row = table.NewRow()
For i = 0 To dr.FieldCount - 1
row(i) = dr(i)
Next
table.Rows.Add(row)
End While
DataGrid1.DataSource = table
Catch ex As Exception
MsgBox(ex.Message & ex.StackTrace)
Finally
cn.Close()
dr.Close()
End Try

1.Visual Basic.NET is object oriented but VB 6 is not so.
2.Visual Basic.NET supports multi threading but VB doesnt support.
3.Visual basic.NET supports Managed Code extensions but VB doesnt support.
4.Both Vb and VB.NET support command line programs.
5.Both VB and VB.NET support COM and COM+ applications.
6.VB.NET is strongly typed but VB is not so.
Dim cn As SqlConnection
Dim cmd As SqlCommand
Dim dr As SqlDataReader
Dim table As New DataTable
constructor
initialze the cn object like eg
cn = new
sqlconnection("server=name;database=name;uid=name;pwd=name;")
write it in the button .click event that add the table dynamicaaly created to datagrid
Try
cmd = New SqlCommand
cmd.CommandType = CommandType.Text
cmd.Connection = cn
cmd.CommandText = "select * from manas"
cn.Open()
dr = cmd.ExecuteReader()
Dim i As Integer
For i = 0 To dr.FieldCount - 1
table.Columns.Add(i)
Next
Dim row As DataRow
While dr.Read()
row = table.NewRow()
For i = 0 To dr.FieldCount - 1
row(i) = dr(i)
Next
table.Rows.Add(row)
End While
DataGrid1.DataSource = table
Catch ex As Exception
MsgBox(ex.Message & ex.StackTrace)
Finally
cn.Close()
dr.Close()
End Try

64.

How To Store And Retrieve Images In Sql Server Database Through Vb.net?

Answer»

To store image in database 1st U NEED to make table LIKE this
CREATE TABLE PicImage
(
Picid int,
Pic Image
)
Now in vb.net coding u have to write code like this
Dim ms As New MemoryStream
pic_photo.Image.Save(ms, pic_photo.Image.RawFormat)
arrImage = ms.GetBuffer
ms.Flush()
Now pass arrImage in ur insert QUERY.

To store image in database 1st u need to make table like this
CREATE TABLE PicImage
(
Picid int,
Pic Image
)
Now in vb.net coding u have to write code like this
Dim ms As New MemoryStream
pic_photo.Image.Save(ms, pic_photo.Image.RawFormat)
arrImage = ms.GetBuffer
ms.Flush()
Now pass arrImage in ur insert query.

65.

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

Answer»

The ASP.NET WEB.config file is used to define the configuration SETTINGS for an ASP.NET application. ASP.NET and the .NET Framework use .config files to define all configuration options. The .config files, including the ASP.NET Web.config file, are XML files. The ASP.NET application configuration settings can be changed by creating a file called Web.config and saving it in the root folder of the application.This is how the minimal Web.config file should look like:
<!--?xml version="1.0" ENCODING="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
The first line of the Web.config file is the same as the first line for any .config file and specifies that this is an XML document with utf-8 character encoding TYPE.
There are 2 important characteristics of the Web.config file. The first one is that if you change your Web.config file, you don?t need to re-compile your ASP.NET application.
The second one is that the Web.config file cannot be viewed in directly in a browser.
Server-wide configuration settings for the .NET Framework are defined in a file called Machine.config. The settings in the Machine.config file can be changed and those settings affect all .NET applications on the server.what if the Machine.config file defines different settings than the ones defined in your Web.config file? The settings in the Web.config file override the settings in the Machine.config file.
[A web.config file is used to configure one asp .net web application. Each Asp.net application has a web.config file. A Machine.config file is used to configure the applications in a particular machine. Configuration done in machine.config file is affected on any application that runs on a particular machine.]

The ASP.NET Web.config file is used to define the configuration settings for an ASP.NET application. ASP.NET and the .NET Framework use .config files to define all configuration options. The .config files, including the ASP.NET Web.config file, are XML files. The ASP.NET application configuration settings can be changed by creating a file called Web.config and saving it in the root folder of the application.This is how the minimal Web.config file should look like:
<!--?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
The first line of the Web.config file is the same as the first line for any .config file and specifies that this is an XML document with utf-8 character encoding type.
There are 2 important characteristics of the Web.config file. The first one is that if you change your Web.config file, you don?t need to re-compile your ASP.NET application.
The second one is that the Web.config file cannot be viewed in directly in a browser.
Server-wide configuration settings for the .NET Framework are defined in a file called Machine.config. The settings in the Machine.config file can be changed and those settings affect all .NET applications on the server.what if the Machine.config file defines different settings than the ones defined in your Web.config file? The settings in the Web.config file override the settings in the Machine.config file.
[A web.config file is used to configure one asp .net web application. Each Asp.net application has a web.config file. A Machine.config file is used to configure the applications in a particular machine. Configuration done in machine.config file is affected on any application that runs on a particular machine.]

66.

Can U Able To Get The Xml Document In Crystal Report If Yes How Its Possible?

Answer»

YES. You have to CONVERT XML to DATASET.

Yes. You have to convert XML to dataset.

67.

How Can I Extract The Formated Word(bold,italic,underline,font,color Etc) From The Msword File.?

Answer»

using CommonDialog class
eg:
the code to invoke the default font dialog box by using the FontDialog control is GIVEN below:
private SUB displayfont_click(byval sender as system.object, byval E as system.eventargs) handles displayfont .click fontdialog. showDialog()
textbox1.font=fontdialog1.font
end sub
the code to invoke the default font dialog box by INSTANTIATING the fontdialog class is:
dim fdialog as new fontdialog()
private sub displayfont_click(byval sender as system.object,byval e as system.eventargs) handles displayfont. click fdialog. showDialog()
textbox1.font=fontdialog1.font
end sub

using CommonDialog class
eg:
the code to invoke the default font dialog box by using the FontDialog control is given below:
private sub displayfont_click(byval sender as system.object, byval e as system.eventargs) handles displayfont .click fontdialog. showDialog()
textbox1.font=fontdialog1.font
end sub
the code to invoke the default font dialog box by instantiating the fontdialog class is:
dim fdialog as new fontdialog()
private sub displayfont_click(byval sender as system.object,byval e as system.eventargs) handles displayfont. click fdialog. showDialog()
textbox1.font=fontdialog1.font
end sub

68.

How A Rotate A Control (rotation Like Shapes Are Rotated In Ms Powerpoint ) In Vb.net?

Answer»

we can USE adrotator CONTROL to use LIKE POWERPOINT PRESENTATION.

we can use adrotator control to use like powerpoint presentation.

69.

How To Send Xml File On Server Using Http Protocol?

Answer»

Through SOAP PROTOCOL.

Through SOAP Protocol.

70.

Whats The Difference Bt. .dll Extension And .exe Extension Files?

Answer»

DLL : It is an inprocess server and runs in the same MEMORY SPACE as client application. Problem with dll is if any ERROR comes in dll, whole application gets crashed.
Exe : It is an out of process server and RUS as independent application in seperate memory. If error comes in exe, it does not affact the client application.

DLL : It is an inprocess server and runs in the same memory space as client application. Problem with dll is if any error comes in dll, whole application gets crashed.
Exe : It is an out of process server and rus as independent application in seperate memory. If error comes in exe, it does not affact the client application.

71.

What Is The Base Class Of .net?

Answer»

System.Object is the BASE CLASS of .NET
It Supports all classes in the .NET FRAMEWORK class hierarchy and PROVIDES low-level services to derived classes. This is the ultimate SUPERCLASS of all classes in the .NET Framework; it is the root of the type hierarchy.

System.Object is the base class of .NET
It Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate superclass of all classes in the .NET Framework; it is the root of the type hierarchy.

72.

Suppose If We Display The "c:\" Or "d:\" Of The Computer In A Web Browser And We Want To Get Any Folder Details But Not Ny Rigth Clicking The Folder. How To Do That Plz Help

Answer»

I think you want the openfiledialog, unless your saving, then savefiledialog. Add ONE to your project. the SIMPLEST usage ALLOWING you to use in any fashion would be
Dim OPEN as NEW Openfiledialog
open.showdialog()
then when you hit open on the dialog, you can pass that information such as
Dim a as string
a = open.filename()
a will then = D:/Filename.smt, or whatever its real directory is Ofcourse there more recomended approaches to this method, but that should get you SOMEWHERE.

I think you want the openfiledialog, unless your saving, then savefiledialog. Add one to your project. the simplest usage allowing you to use in any fashion would be
Dim OPEN as New Openfiledialog
open.showdialog()
then when you hit open on the dialog, you can pass that information such as
Dim a as string
a = open.filename()
a will then = D:/Filename.smt, or whatever its real directory is Ofcourse there more recomended approaches to this method, but that should get you somewhere.

73.

How Can We Get The Contents Information That Are Displayed In A Web

Answer»

BROWSER CONTROL in vb.net.

browser control in vb.net.

74.

Please List Some Final Year Projects That Can Be Done Using Vb.net In The Application Level.

Answer»

You can GO for internet control of robot.
1. use chips:- at89c51 microcontroller, l293d motor driver n max232 converter (for robot)
2. using vb.net, develop the GUI n use winsock programming for sending PHOTOS on internet.
3. use mscomm programming in .net to move the robot in a wired connection with the comp.
4. u can also use Enbedded C for microcontroller programming in place of assembly.use keil compiler for that n its available for FREE on internet.
5. attach a cam to robot, move it n transfer the photos captured to the client over internet.

You can go for internet control of robot.
1. use chips:- at89c51 microcontroller, l293d motor driver n max232 converter (for robot)
2. using vb.net, develop the gui n use winsock programming for sending photos on internet.
3. use mscomm programming in .net to move the robot in a wired connection with the comp.
4. u can also use Enbedded C for microcontroller programming in place of assembly.use keil compiler for that n its available for free on internet.
5. attach a cam to robot, move it n transfer the photos captured to the client over internet.

75.

Can Any Body Tell Me The Code Procedure For Preparing Parameterized Cristel Reports.the Report Should Be Generated By Taking To Or More Parameters. Example: Report Should Be Genarated From Date To Todate?

Answer»

We can generate Crystal Report by USING DATE parameter, but the date format should be "yyyy,mm,dd".
Ex.CrystaReport1.SelectionFormula = "{GLNOTE.L_DT}=date(" & a & ")"
The VARIABLE 'a' should be assign with formated date.

We can generate Crystal Report by using date parameter, but the date format should be "yyyy,mm,dd".
Ex.CrystaReport1.SelectionFormula = "{GLNOTE.L_DT}=date(" & a & ")"
The variable 'a' should be assign with formated date.

76.

What Is .net

Answer»

.Net is the Development Plateform which provides advanced FEATURE facilities for the web and window application along with the window services . The .Net is the Middle layer between the operating System and the .Net application .The feature of .Net that the .Net Component can talk with each other without worrying about the language in which they are originally.. Two main components are CLR stands for the common Language Runtime and the .Net FrameWork Base classes. The CLR performs the task of converting the IL to native CODE Which gives the .Net applications to be language INDEPENDENT . The Other component Like .Net FramwWork Base Classes ACT as services to be provided to the .Net applications.

.Net is the Development Plateform which provides advanced feature facilities for the web and window application along with the window services . The .Net is the Middle layer between the operating System and the .Net application .The feature of .Net that the .Net Component can talk with each other without worrying about the language in which they are originally.. Two main components are CLR stands for the common Language Runtime and the .Net FrameWork Base classes. The CLR performs the task of converting the IL to native code Which gives the .Net applications to be language Independent . The Other component Like .Net FramwWork Base Classes act as services to be provided to the .Net applications.

77.

Multi-language Support As We Progress In Your Development Process. How Can We Remove Handlers At Run Time ?

Answer»

RemoveHandler myobj.myEvent, AddressOf MyEventHandler.

RemoveHandler myobj.myEvent, AddressOf MyEventHandler.

78.

What Are Satellite Assemblies?

Answer»

Satellite ASSEMBLIES are user for localizing the applications resources. A satellite assembly is a DLL that contains only RESOURCE strings.we TYPICALLY have one satellite assembly DLL for each language. Because these satellite assembly DLLs are separated from the MAIN assembly (an .exe or DLL), it is EASIER to drop in.

Satellite assemblies are user for localizing the applications resources. A satellite assembly is a DLL that contains only resource strings.we typically have one satellite assembly DLL for each language. Because these satellite assembly DLLs are separated from the main assembly (an .exe or DLL), it is easier to drop in.

79.

What Are Jagged Arrays ?

Answer»

a collection of discrete no of elements in each and every row is CALLED as jagged arrays.
1)these jagged arrays doesn’t contain COLUMNS,
2)a jagged array also called as dynamic array
3)jagged array is a collection of dynamic arrays
4)these are faster and also save the memory.
syntax of jagged array:
INT[][]x=new int [rows][]
here x is array NAME

a collection of discrete no of elements in each and every row is called as jagged arrays.
1)these jagged arrays doesn’t contain columns,
2)a jagged array also called as dynamic array
3)jagged array is a collection of dynamic arrays
4)these are faster and also save the memory.
syntax of jagged array:
int[][]x=new int [rows][]
here x is array name

80.

What Do You Mean By 'option Strict On' ?

Answer»

Option Strict
Visual Basic language in general does not require explicit syntax to be used when performing operations that might not be optimally efficient (e.g. late binding) or that might fail at run time (e.g. narrowing CONVERSIONS). This permissive semantics often prevents detection of coding errors and also affects the performance of the application.
VB.NET enables a programmer to enforce strict semantics by setting this option to "On". When used, this option should appear before any other CODE. This option can be set to "On" or "Off". If this statement is not specified, by default, it is set to "Off".
Syntax: Option Strict [On / Off]
When it is set to "On", it disallows any narrowing conversions to occur without an explicit cast operator, late binding and does not LET the programmer omit "As" clause in the declaration statement. Since setting it to "On" REQUIRES explicit conversion, it also requires that the compiler be able to determine the type of each variable. Thus it is implied that Option Strict also means Option Explicit.
Visual Basic .NET allows implicit conversions of any data type to any other data type. However, data loss can occur if the value of one data type is converted to a data type with less precision or a SMALLER capacity. Setting this option to "On" ensures compile-time notification of these types of conversions so they may be avoided.

Option Strict
Visual Basic language in general does not require explicit syntax to be used when performing operations that might not be optimally efficient (e.g. late binding) or that might fail at run time (e.g. narrowing conversions). This permissive semantics often prevents detection of coding errors and also affects the performance of the application.
VB.NET enables a programmer to enforce strict semantics by setting this option to "On". When used, this option should appear before any other code. This option can be set to "On" or "Off". If this statement is not specified, by default, it is set to "Off".
Syntax: Option Strict [On / Off]
When it is set to "On", it disallows any narrowing conversions to occur without an explicit cast operator, late binding and does not let the programmer omit "As" clause in the declaration statement. Since setting it to "On" requires explicit conversion, it also requires that the compiler be able to determine the type of each variable. Thus it is implied that Option Strict also means Option Explicit.
Visual Basic .NET allows implicit conversions of any data type to any other data type. However, data loss can occur if the value of one data type is converted to a data type with less precision or a smaller capacity. Setting this option to "On" ensures compile-time notification of these types of conversions so they may be avoided.

81.

What Is The Dif B/w Panel And Groupbox.

Answer»

Both panel and group box acts like a container to other controls they help us a lot in some APPLICATIONS where we want a group of controls or objects should be DISABLED or ENABLED when a specific task is performedthe main difference is group box has a hording where u can place a TEXT of ure own whereas a panel is just like a frame what we USED in VB but has a scrollbar(hs,vs)

Both panel and group box acts like a container to other controls they help us a lot in some applications where we want a group of controls or objects should be disabled or enabled when a specific task is performedthe main difference is group box has a hording where u can place a text of ure own whereas a panel is just like a frame what we used in VB but has a scrollbar(hs,vs)

82.

What Is The Difference B/w Readonly Variable And Constant Variable?

Answer»

VARIABLE used to store the data
Read only variable:-
Read only variable means read only but not allow to write
CONSTANT:
constant variable specify the constant VALUE.

variable used to store the data
Read only variable:-
Read only variable means read only but not allow to write
constant:
constant variable specify the constant value.

83.

How To Call A List Box On The Text If Some One Send Me The Code For It

Answer»

i understood the ? like this what to do if we need to TRANSFER the listbox items to the TEXT if i am correct then my ANSWER to this is double click on the listbox so that the eventof the listbox is displayed in the code editori.e
private SUB listbox1_selectedindexchanged......
textbox1.text=listbox1.selecteditem.

i understood the ? like this what to do if we need to transfer the listbox items to the text if i am correct then my answer to this is double click on the listbox so that the eventof the listbox is displayed in the code editori.e
private sub listbox1_selectedindexchanged......
textbox1.text=listbox1.selecteditem.

84.

What Are Fixed Memory Leaks And Threads Locking Problems.

Answer»

Memory LEAK is a bug in the program which uses the memory continuously without RELEASING it until the system crash.Thread locking problem is nothing but a deadlock situation in case of SYNCHRONOUS process when two consecutive threads get lock on a common resource and waiting for each other to release that. This happens usually in case when the SEMAPHORES or MONITORS are not used.

Memory leak is a bug in the program which uses the memory continuously without releasing it until the system crash.Thread locking problem is nothing but a deadlock situation in case of synchronous process when two consecutive threads get lock on a common resource and waiting for each other to release that. This happens usually in case when the semaphores or monitors are not used.

85.

How Is Vb.net Different From Vb6?

Answer»
  1. VB6 was a scripting language while VB.NET is a Programming language.
  2. VB6 was supported Unstructured error handling by using On Error Gotos tatement. VB.NET supports structured exceptional by using Try…Catch…Finally to HANDLE exceptions at runtime.
  3. VB.NET is completely supports object oriented features.but VB6 wont SUPPORT.
  4. VB6 used ADO as Data access technology and record-sets to implement data access applications. Also here data transfer in the form of binary format.VB.NET uses ADO.NET and datasets to build data access applications. The ADO.NET also supports the DISCONNECTED data access. Here the data transfer in the form of xml format. So here their is FASTER data transfer.
  5. Multiple VERSIONS are supported with VB.NETbut withVB6its not supported.
  6. multithreading is supported with VB.NET, but not with VB6.

86.

What Is The Common Language Runtime?

Answer»

CLR means commaon language RUNTIME for the dot NET frame work.it is the frame work layer that resides above the OPERATING system and handels/ manages the execution of the .net applications.our .net programs don't directly COMMUNICATE with the operating system but through CLR.
OUT .NET APPLICATION--->>CLR--->WINDOWS OS

CLR means commaon language runtime for the dot net frame work.it is the frame work layer that resides above the operating system and handels/ manages the execution of the .net applications.our .net programs don't directly communicate with the operating system but through CLR.
OUT .NET APPLICATION--->>CLR--->WINDOWS OS

87.

Is There Any Easy Way To Convert Vb6 Programs To Vb.net?

Answer»

Just Open The VB Project in VISUAL Studio.Net(FILE---> Open).

Just Open The Vb Project in Visual Studio.Net(File---> Open).

88.

What Do You Mean By .net Framework

Answer»

It is a collection of CLASSES and services.It exists as a layer between.NET applications and underlying operating system.i.e., it encapsulates the basic functionality that was earlier built into programming languages such as DEBUGGING and security services.
[.net framework is a collection of services & classes.it exists as a layer b/w .net applications 7 the underlying operating system.
.net framework consists of web forms,window forms & console applications that pertain to the PRESENTATION layer of the APLICATION.
.net framework consists of two other components,the .net framework base classes & common language runtime(CLR).]

It is a collection of classes and services.It exists as a layer between.NET applications and underlying operating system.i.e., it encapsulates the basic functionality that was earlier built into programming languages such as debugging and security services.
[.net framework is a collection of services & classes.it exists as a layer b/w .net applications 7 the underlying operating system.
.net framework consists of web forms,window forms & console applications that pertain to the presentation layer of the aplication.
.net framework consists of two other components,the .net framework base classes & common language runtime(CLR).]

89.

Do Event Have Return Type?

Answer»

No. EVENTS do not have RETURN TYPE.

No. events do not have return type.

90.

What Are The Similarities Between Class And Structure?

Answer»

-> Both can have constructors, methods, properties , FIELDS, constants , enumerations, events and event
handlers.
-> STRUCTURE and class can implement interface.
-> Both of them can have constructor without parameter and with parameter.
-> Both can have delegates and events.
[class is a collection of methods functions and properties enumerators and fields.
structure can be defined as a tool for handling a group of logically related DATA item.
the main DIFFERENCE is class is a referance TYPE.structure is a reference value type.]

-> Both can have constructors, methods, properties , fields, constants , enumerations, events and event
handlers.
-> Structure and class can implement interface.
-> Both of them can have constructor without parameter and with parameter.
-> Both can have delegates and events.
[class is a collection of methods functions and properties enumerators and fields.
structure can be defined as a tool for handling a group of logically related data item.
the main difference is class is a referance type.structure is a reference value type.]

91.

What Is The Relation Between Garbage Collector And Finalize And Destructor?

Answer»

here the GC calls an object's FINALIZE method immediately before it collects an object that is no longer referred by the application.
GC doesn’t actually run finalize method when the GC FINDS a FINALIZE method it queues the obj up for the finalizer to execute the objects method[GC checks for those resources which are no longer used by the process. To RELEASE the memory from these resources and in order to regain the memory heap GC initiates DESTRUCTORS to destroy such instances of the program. Before the DESTRUCTOR void an INSTANCE variable finalize routine gets executed. This routine performs whatever is to be done before the object return to void state or prior to release of any unused resources.]

here the GC calls an object's FINALIZE method immediately before it collects an object that is no longer referred by the application.
GC doesn’t actually run finalize method when the GC finds a FINALIZE method it queues the obj up for the finalizer to execute the objects method[GC checks for those resources which are no longer used by the process. To release the memory from these resources and in order to regain the memory heap GC initiates destructors to destroy such instances of the program. Before the destructor void an instance variable finalize routine gets executed. This routine performs whatever is to be done before the object return to void state or prior to release of any unused resources.]

92.

What Is The Root Namespace For All Types?

Answer»

IMPORTS SYSTEM.

Imports system.

93.

What Is The Difference Between Clr &amp; Cts?

Answer»

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

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

94.

Trace And Debug Belongs To Which Namespaces?

Answer»

system.process.diagnostics.

system.process.diagnostics.

95.

Columnmapping Belongs To Which Namespaces?

Answer»

System.Data.Common.

System.Data.Common.

96.

In Order To Get Assembly Info Whcih Namespace We Should Import?

Answer»

system.reflection.

system.reflection.

97.

What Is The Difference Between Friend And Protected Friend?

Answer»

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 --&GT; 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]

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]

98.

What Is The Difference Between Overriding And Overloading?

Answer»

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.]

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.]

99.

How Do You Declare Static Variable And How It Is Declared And What Is Its Lifetime?

Answer»

Static variables are DECLARE through the Static VAR1 as INTEGER The scop of the Var1 is WITHIN the module where its is Defined.

Static variables are declare through the Static Var1 as Integer The scop of the Var1 is within the module where its is Defined.

100.

What Is The Difference Between Dataset And Datareader?

Answer»

DataReader:
Datareader is like a forward only recordset. It fetches one row at a time so very less Network Cost compare to DataSet(Fetches all the rows at a time). DataReader is readonly so we cannot do any transaction on them. DataReader will be the best choice where we need to show the data to the user which requires no transaction i.e reports. Due to DataReader is forward only we cannot fetch the data randomly. .NET Dataproviders optimizes the datareaders to handle the huge AMOUNT of data.

DataSet:
DataSet is always a BULKY object that requires lot of memory SPACE compare to DataReader. We can say the dataset as a small database because it stores the schema and data in the application memory area. DataSet fetches all data from the datasource at a time to its memory area. So we can traverse through the object to get required data like querying database.The dataset maintains the relationships among the datatables insideit. We can manipulate the realational data as XML using dataset.We can do transactions (insert/update/delete) on them and finally the modifications can be updated to the actual database. This provides impressive FLEXIBILITY to the application but with the cost of memory space. DataSet maintains the original data and the modified data seperately which requires more memory space. If the amount of data in the dataset is huge then it will reduce the APPLICATIONS performance dramatically.

DataReader:
Datareader is like a forward only recordset. It fetches one row at a time so very less Network Cost compare to DataSet(Fetches all the rows at a time). DataReader is readonly so we cannot do any transaction on them. DataReader will be the best choice where we need to show the data to the user which requires no transaction i.e reports. Due to DataReader is forward only we cannot fetch the data randomly. .NET Dataproviders optimizes the datareaders to handle the huge amount of data.

DataSet:
DataSet is always a bulky object that requires lot of memory space compare to DataReader. We can say the dataset as a small database because it stores the schema and data in the application memory area. DataSet fetches all data from the datasource at a time to its memory area. So we can traverse through the object to get required data like querying database.The dataset maintains the relationships among the datatables insideit. We can manipulate the realational data as XML using dataset.We can do transactions (insert/update/delete) on them and finally the modifications can be updated to the actual database. This provides impressive flexibility to the application but with the cost of memory space. DataSet maintains the original data and the modified data seperately which requires more memory space. If the amount of data in the dataset is huge then it will reduce the applications performance dramatically.