VB.Net Interview Questions and Answers
Question - 151 : - What Is The Advantage Of Packaging Over Xcopy In .net?
Answer - 151 : -
Xcopy technique is to simply copy your web application files to the production server hard drive and set a virtual directory there. The setting of a virtual directory is needed by several deployment schemes and can be achieved from Internet Information Manager Microsoft Management Consol.
It's always desirable to package your web applications such that they are easy to deploy on the production server then the traditional xcopy in which the developers have to use the command line.
Question - 152 : - What Is The Difference Between Datatable And Dataset?
Answer - 152 : -
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.
Question - 153 : - What Is The Size Of .net Object?
Answer - 153 : -
Default size when a class gets loaded in memory is 8 bytes.
Question - 154 : - What Is The Significance Of Delegates. Where Should They Be Used? What Are The Situations Where We Require Them?
Answer - 154 : -
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
Question - 155 : - Explain About The Feature Anonymous Type?
Answer - 155 : -
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.
Question - 156 : - Explain About The Ruby Interface Generator?
Answer - 156 : -
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.
Question - 157 : - What Is Datatype Conversion In Vb.net?
Answer - 157 : -
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.
Question - 158 : - What Is Branching Logic Control In Vb.net?
Answer - 158 : -
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.
Question - 159 : - Write The Role Of New Keyword?
Answer - 159 : -
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.
Question - 160 : - How Can We Remove Handlers At Run Time?
Answer - 160 : -
Remove Handler myobj.myEvent, AddressOf MyEventHandler.