YouTube Icon

Interview Questions.

Top 100+ Vb.net Interview Questions And Answers - Jun 02, 2020

fluid

Top 100+ Vb.net Interview Questions And Answers

Question 1. What Are The Properties Should Be Given To Set Method?

Answer :

Class Class1
' Define a local variable to store the property value.
[Ans: Only One Property.
Example:
Private PropertyValue As String
' Define the belongings.
Public Property Prop1() As String
Get
' The Get belongings manner is referred to as whilst the value
' of a assets is retrieved.
Return PropertyValue
End Get
Set(ByVal Value As String)
' The Set belongings system is known as whilst the fee
' of a property is modified.
' The price to be assigned is handed inside the
' argument to Set.
PropertyValue = Value
End Set
End Property
End Class

Question 2. How Can We Assigns Items On Listbox So That It Will Show Rowwise Please Write The Code For It.

Answer :

Lisbox1.Items.Add "Prashant"
Lisbox1.Items.Add "Chinchu"
Lisbox1.Items.Add "Pallavi"
Lisbox1.Items.Add "Suresh"
Lisbox1.Items.Add "Polika"

ASP.NET Interview Questions
Question three. What Is Vb.Internet?

Answer :

Vb.Internet is a programming language this is available in Visual Studio. Net. It carries functions of visible fundamental that is occasion primarily based programming language and additionally consists of object oriented ideas.
[VB.Net is a programming language which is an extension of Visual Basic to make it compliant to the Dot Net Framework. Also VB.Net is fully Object Oriented unlike Visual Basic and everything in VB.Net is an object. As it is compliant to the Dot Net Framework VB.Net can make full use of Framework Class Library provided by dot Net Framework.]

Question 4. How Do You Validate Date By Using Which Validation Control?

Answer :

<asp:regularexpressionvalidator id="regExpDate"
runat="server"
ValidationExpression="^d2[/-]d2[/-]d2,4$"
ErrorMessage="It is not a valid date"
ControlToValidate="txtpatientvisitdate"
EnableClientScript="False"
Display="Dynamic"></asp:regularexpressionvalidator>

VB.NET Tutorial
Question 5. What Does Vs.Net Contains ?

Answer :

Visual Studio .Net is basically a framework which makes easy improvement of codes written in Various programming languages.. It includes two matters
1.Framework Class Library: It includes various classes managed inside numerous namespaces.
2.Common Language Runtime: CLR is the execution engine which enables in compiling the IL code into gadget code,looks after protection problems and lots of other crucial responsibilities.Web pages, home windows apps, console packages, Class libraries are numerous alternatives which may be created using VS.Internet.

ADO.Net Interview Questions
Question 6. How Do You Rate Yourself In .Net ?

Answer :

Based on Framework expertise and OOPS Concepts,Use of Different Component Library.

Question 7. What Is Intermediate Language In .Internet ?

Answer :

.Net supports CLS i. E. Common language kind. Its a microsoft’s characteristic to deliver all languages close to one roof. When You collect .Net code it doesn't transformed into binary language, it converted into IL (Intermediate Language) additionally referred to as MSIL. And from IL to binary language transformed at run time, CLR manages this manner. At the runtime additionally it not converts complete mission at time to binary, most effective converts that component which is going to execute, this the overall performance of undertaking increases. This IL can use any language that is member of that .Internet studio. The assemblies (ExE, DLL) also are in IL form. So u can use any EXE or DLL created in vb.Internet in c#.Internet also.[which converts native code into byte code i.E machine understandable code.]

ASP.NET Tutorial Windows Presentation Foundation(WPF) Interview Questions
Question eight. Is Vb.Net Object Oriented? What Are The Inheritances Does Vb.Internet Support ?

Answer :

sure VB.NET ia an item oriented.Vb.Net helps all inheritance
1)single inheritance
It manner Single class inheriting to unmarried child instructions
2)more than one inheritance
more than one classess inherits to unmarried instructions
three)Multilevel Inheritance
Single class inherits to at least one elegance that class inheritd to single every other class
4)Heirarichal inheritance
Single magnificence inherits to Multiple classes
five)Hybrid Inheritance
Single elegance inherits to distinct classess and that lessons inherits to 1 elegance.

Question 9. Difference Between Vb Dll And Assemblies In .Net ?

Answer :

Assemblies can contain DLL and EXE both. Different variations of 1 DLL may be dealt with via assemblies. They conquer the DLL Hell problem. Assemblies Contain Manifest and Meta Data documents. These are the separate files that describes the Assembly and its attributes. VB DLL is inprocess.DLL run with an exe in which as DLL are not self executable.
We can reuse DLLs .DLL aren't platform unbiased If we've got more then one Versions of a DLL we are able to face DLL Hell Problem.

Windows CE .NET Interview Questions
Question 10. How Do You Do Multithreading Application In Vb ?

Answer :

VB would not aid multithreading.
[Its the fastest and an excellent application provided in VB.Net. Due to which many operations can be done without any lapse of time. The system need not wait for an application or any task to get completed, rather it runs simultaneously.]

Windows Presentation Foundation(WPF) Tutorial
Question eleven. What Are The Types Of Threading Models In Vb.Internet ?

Answer :

There are lot of threading model available, however we awareness on Threading models which are commonplace to win32based environments singleThreaded:There is best one thread with in the manner,and it's far doing all the paintings for the process.The technique must look ahead to the present day execution of the thread to finish earlier than it is able to perform some other motion.
Apartment Threading (Single Threaded Apartment)Apartment threaded means there are more than one threads in the software. In single threaded condo (STA) each thread is isolated in a separate apartment under the procedure. The system will have any range of residences that percentage facts thru a proxy. The utility defines whilst and for how long the thread in each apartment need to execute. All requests are serialized thru the Windows message queue such that most effective a unmarried apartment is accessed at a time and as a result best a single thread could be executing at any individual time.
Free Threading (Multi Threaded Apartment)Free threaded applications have been limited to programming languages along with C++ until the discharge of Microsoft .NET. The free threaded/Multi Threaded Apartment (MTA) model has a single apartment created beneath the method rather than a couple of residences. This unmarried rental holds multiple threads in place of only a unmarried thread. No message queue is required because all the threads are a part of the identical condominium and can proportion facts without a proxy.
The developer ought to provide thread synchronization as a part of the code to make certain that threads do now not simultaneously get admission to the equal resources.

Dot Net Framework Interview Questions
Question 12. What Are The Advantage In Vb.Net And Different Between Vb And Vb.Internet

Answer :

vb isn't always comply with the oops idea. But vb.Net observe the oops idea.
[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]

ASP.NET Interview Questions
Question thirteen. What Is The Difference Between Web User Control And Web Custom Control?

Answer :

web user control: in which it predefined characteristic functionality where it resides in control library
internet custom control: where it's miles described by means of user itself and keep in a custom library
Web User Controls:
1) Easy to Create
2) Limited guide for customers who use visual layout device
three) A seperate reproduction of the manage is required in every utility.
Four)Cannot be delivered to toolbox in Visual Studio.
Five) Good for Static Layout.
Web Custom Controls:
1) Harder to Create
2) Full guide for purchasers
three) Only a single reproduction of the manage is required inside the GAC
4)Can be brought
five) Good for Dynamic Layout.

Question 14. What Is An Indexed Property?

Answer :

you include the index parameter in the Property statement. In this case, the test_number parameter is the index for the Scores belongings.
Public Class Student
' The private array of scores.
Private m_Scores(nine) As Integer
' The listed Score property processes.
Public Property Score(ByVal test_number As Integer) As _ Integer
Get
Return m_Scores(test_number)
End Get
Set(ByVal Value As Integer)
m_Scores(test_number) = Value
End Set
End Property
End Class

Question 15. What Is Versioning In .Internet?

Answer :

most important gain of .Internet is versioning and remedy very essential problem.
.Internet preserve one application with greater then one version and additionally remedy DLL HELL problem due to the fact it can run same software with exceptional model at a same time[.Net have an Assembly. It gives the Portable Execution file.The main use of assembly is to maintain the Dll and exe's.
So sometimes the programmer confused to which is modified code.That time the assembly provide the Version.That is called versioning. It is start from 1.0.*,.......]

Asp Dot Net Mvc 4 Interview Questions
Question sixteen. What Is Dll Hell?

Answer :

1.Adding of a brand new virtual technique to a category exported from a DLL can motive the subsequent problems:
-If class already has a digital approach B and we are including a brand new one named A earlier than it, then we are converting the table of digital methods. Now the primary digital technique inside the desk can be A but now not B and the customer application which calls B will fail without recompilation as the call of B will cause the call of A and that is every other method which probable has different parameters and return type.
-When a class doesn?T have digital strategies and none of its base instructions have, then including of a new digital technique to it or to its base magnificence will cause including of the pointer for the table of virtual techniques. This will purpose change in the elegance length. So the error will arise after a patron application will allocate memory for the elegance (an quantity of memory that was required earlier than the magnificence has been changed) and could try to regulate some of the elegance' fields explicitly or implicitly. In this case, because the pointer to the desk of virtual method is brought to the beginning of the elegance, all addresses of the class fields are shifted and consequently we can get an unusual purchaser software behavior or a runtime errors.
-In case whilst a category has digital strategies or any of its determine training has, we can’t add virtual methods to lessons exported from the DLL if they take part inside the inheritance. We can?T upload virtual techniques now not best to the start of the class assertion however also to the quit of it. The trouble is in moving inside the desk of digital techniques. Note that even if you upload a new digital method to the quit of the elegance statement then the child’s digital methods might be shifted.
2.Adding of a brand new discipline (of any type) to a category assertion can reason following troubles:
1.Adding of a new subject to the end of a class reasons elegance size to exchange as inside the case of including of a digital method to a class that didn?T have any. The consumer program will allocate less reminiscence than it's far required for a new magnificence and this may reason referencing to the reminiscence out of the class scope.
2.Adding of a new field between present ones is even worse. It will case all addresses of fields after the brand new one to be shifted and a patron software will work with the incorrect addresses at the same time as running with the fields which might be located after the brand new subject. We additionally have the problem as within the previous point right here.

Question 17. How Does You Call And Execute A Sp In .Net?

Answer :

Using command object we are able to execute a SP. Instead of sq. Question we need to skip the SP Name.
[command.Connection =connectionstring
command.CommandType=commandType.StoredProcedure
command.Commandtext="sp_name"
command.Executenonquery()]

Asp Dot Net Mvc Interview Questions
Question 18. Why Datareader Is Useful?

Answer :

Data reader is beneficial whilst we simply want to acccess datas from the database no longer whilst we need to perform DML operations. And It is beneficial while we need to perform ahead best studying of datas.It wont requires any large extent of sources within the Front end. [Datareader is read only or forward only. So it is very fast to fetch the data from database.]

ADO.Net Interview Questions
Question 19. What Is The Difference Between Dataset And Recordset?

Answer :

A DataSet can constitute a whole relational database in reminiscence, entire with tables, members of the family, and views.
-A DataSet is designed to paintings without any persevering with connection to the unique information supply.
-Data in a DataSet is bulk-loaded, instead of being loaded on call for.
-There's no idea of cursor sorts in a DataSet.
-DataSets haven't any cutting-edge report pointer You can use For Each loops to transport via the records.
-You can keep many edits in a DataSet, and write them to the authentic records source in a unmarried operation.
-Though the DataSet is everyday, different objects in ADO.NET come in exceptional variations for special records resources.
[1)With Data set you can retrive data from database like oracle and SQL Server and manage them in one dataset, with recordset this is not possible.
2)All representation of Dataset is using XML while recordset uses COM.
3)Recordset can not be transmitted on HTTP while Dataset can be.]

Question 20. How Does You Get Record No From five To 15 From A Dataset Of one hundred Records?

Answer :

dim dRow as statistics.Datarow
for i as interger = five to 15
drow = dSet.Tables(zero).Rows(i)
'system row
subsequent i

Question 21. What Is The Difference Between Dataset And Datareader?

Answer :

DataReader:
Datareader is sort of a forward only recordset. It fetches one row at a time so very much less Network Cost examine to DataSet(Fetches all of the rows at a time). DataReader is readonly so we cannot do any transaction on them. DataReader can be the excellent choice wherein we want to reveal the statistics to the consumer which calls for no transaction i.E reviews. Due to DataReader is forward only we can not fetch the records randomly. .NET Dataproviders optimizes the datareaders to deal with the huge amount of statistics.

DataSet:
DataSet is continually a cumbersome object that calls for lot of reminiscence area examine to DataReader. We can say the dataset as a small database as it stores the schema and statistics within the software reminiscence region. DataSet fetches all information from the datasource at a time to its reminiscence vicinity. So we will traverse through the item to get required data like querying database.The dataset maintains the relationships most of the datatables insideit. We can manipulate the realational records as XML using dataset.We can do transactions (insert/replace/delete) on them and finally the adjustments can be updated to the actual database. This presents fantastic flexibility to the software but with the cost of memory space. DataSet keeps the authentic facts and the changed information seperately which requires extra memory space. If the amount of records in the dataset is large then it will reduce the programs performance dramatically.
 

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

Answer :

Static variables are claim via the Static Var1 as Integer The scop of the Var1 is within the module in which its is Defined.

Question 23. What Is The Difference Between Overriding And Overloading?

Answer :

overloading-------having equal method call with specific signatures.
Overriding--------techniques call and signatures should be identical
[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.]

Question 24. What Is Shadowing?

Answer :

When global and neighborhood varible inside the equal name.The neighborhood varibale in a mehod or characteristic which use to override the global is referred to as the shadowing.Ie the Global varible is being shadowed by using the nearby varible.

Windows Presentation Foundation(WPF) Interview Questions
Question 25. What Is An Abstract Class?

Answer :

It is a class which contains as a minimum one summary approach(A technique with none implementation). Other techniques may have implementations. This magnificence can not be instantiated. It can continually emerge as a base magnificence for other instructions.

 

Question 26. What Is The Difference Between Friend And Protected Friend?

Answer :

Protected variable might be accessed in inherited elegance, however instance variable of sophistication cant get entry to blanketed variable.While friend variable could be accessed in inherited class as well as example variable of class across the assignment.Where we need both functionality we're the usage of protected pal 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 27. In Order To Get Assembly Info Whcih Namespace We Should Import?

Answer :

system.Reflection.

Windows CE .NET Interview Questions
Question 28. Columnmapping Belongs To Which Namespaces?

Answer :

System.Data.Common.

Question 29. Trace And Debug Belongs To Which Namespaces?

Answer :

device.Process.Diagnostics.

Question 30. What Is The Difference Between Clr & Cts?

Answer :

CLR is the common language runtime. That is the feature makes the .Internet packages to run plantform impartial langauge interoperability.
CTS Common kind system is the a part of the CLR which permit the Common Datatype machine to All the .Net languages.It also defines conventions to convert objects from one langauge to every other

Question 31. What Is Clr?

Answer :

CLR way Common Language Runtime.It is Major component of the .NET frameworkIt presents wide variety of benefits to the developers including Exception dealing with,Security,Debugging and Versioning...

Question 32. What Is The Root Namespace For All Types?

Answer :

Imports device.

Question 33. What Is The Relation Between Garbage Collector And Finalize And Destructor?

Answer :

here the GC calls an object's FINALIZE approach immediately before it collects an item this is now not referred through the utility.
GC doesn’t surely run finalize technique whilst the GC reveals a FINALIZE approach it queues the obj up for the finalizer to execute the gadgets technique[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.]

Dot Net Framework Interview Questions
Question 34. What Are The Similarities Between Class And Structure?

Answer :

-> Both will have constructors, techniques, houses , fields, constants , enumerations, events and occasion
handlers.
-> Structure and sophistication can put into effect interface.
-> Both of them will have constructor with out parameter and with parameter.
-> Both will have delegates and occasions.
[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.]

Question 35. Do Event Have Return Type?

Answer :

No. Events do not have go back kind.

Question 36. What Do You Mean By .Net Framework

Answer :

It is a group of training and services.It exists as a layer among.NET packages and underlying running machine.I.E., it encapsulates the primary functionality that become in advance built into programming languages consisting of debugging and protection 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).]

Asp Dot Net Mvc four Interview Questions
Question 37. Is There Any Easy Way To Convert Vb6 Programs To Vb.Net?

Answer :

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

Question 38. What Is The Common Language Runtime?

Answer :

CLR approach commaon language runtime for the dot net body work.It is the frame work layer that is living above the working system and handels/ manages the execution of the .Internet programs.Our .Net programs do not immediately speak with the operating device but via CLR.
OUT .NET APPLICATION--->>CLR--->WINDOWS OS

Question 39. How Is Vb.Internet Different From Vb6?

Answer :

VB6 was a scripting language even as VB.NET is a Programming language.
VB6 turned into supported Unstructured mistakes dealing with by way of the use of On Error Gotos tatement. VB.NET helps structured terrific by using Try…Catch…Finally to deal with exceptions at runtime.
VB.NET is absolutely helps object orientated capabilities.But VB6 wont support.
VB6 used ADO as Data access technology and file-sets to enforce data get entry to applications. Also here statistics switch within the form of binary format.VB.NET uses ADO.NET and datasets to build facts access programs. The ADO.NET additionally helps the disconnected data get admission to. Here the statistics switch within the form of xml format. So here their is quicker information transfer.
Multiple variations are supported with VB.NETbut withVB6its now not supported.
Multithreading is supported with VB.NET, but no longer with VB6.
Question forty. What Are Fixed Memory Leaks And Threads Locking Problems.

Answer :

Memory leak is a malicious program in the software which uses the memory constantly without releasing it until the machine crash.Thread locking problem is not anything however a impasse state of affairs in case of synchronous process whilst  consecutive threads get lock on a commonplace resource and expecting each other to launch that. This happens usually in case when the semaphores or monitors are not used.

Asp Dot Net Mvc Interview Questions
Question 41. 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 objects to the textual content if i am correct then my answer to this is double click on on the listbox so that the eventof the listbox is displayed inside the code editori.E
private sub listbox1_selectedindexchanged......
Textbox1.Text=listbox1.Selecteditem.

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

Answer :

variable used to shop the statistics
Read most effective variable:-
Read handiest variable means study best however no longer allow to write down
regular:
steady variable specify the regular cost.

Question forty three. What Is The Dif B/w Panel And Groupbox.

Answer :

Both panel and organization field acts like a field to other controls they help us plenty in a few packages in which we need a set of controls or gadgets must be disabled or enabled while a particular venture is performedthe important distinction is institution container has a hording where u can vicinity a textual content of ure own while a panel is similar to a body what we used in VB but has a scrollbar(hs,vs)

Question 44. What Do You Mean By 'option Strict On' ?

Answer :

Option Strict
Visual Basic language in wellknown does no longer require express syntax for use whilst performing operations that may not be optimally green (e.G. Late binding) or that might fail at run time (e.G. Narrowing conversions). This permissive semantics often prevents detection of coding mistakes and additionally affects the performance of the software.
VB.NET permits a programmer to enforce strict semantics by setting this feature to "On". When used, this option have to seem before some other code. This alternative may be set to "On" or "Off". If this announcement is not specific, via default, it is set to "Off".
Syntax: Option Strict [On / Off]
When it's miles set to "On", it disallows any narrowing conversions to occur without an express forged operator, past due binding and does now not let the programmer leave out "As" clause within the statement announcement. Since setting it to "On" requires explicit conversion, it additionally calls for that the compiler be capable of decide the form of every variable. Thus it's far implied that Option Strict also approach Option Explicit.
Visual Basic .NET allows implicit conversions of any records kind to every other data kind. However, records loss can occur if the price of 1 information type is transformed to a facts type with less precision or a smaller potential. Setting this option to "On" ensures assemble-time notification of these kinds of conversions so they will be avoided.

Question 45. What Are Jagged Arrays ?

Answer :

a collection of discrete no of factors in every and every row is referred to as as jagged arrays.
1)these jagged arrays doesn’t include columns,
2)a jagged array also called as dynamic array
three)jagged array is a group of dynamic arrays
four)those are faster and also store the reminiscence.
Syntax of jagged array:
int[][]x=new int [rows][]
right here x is array call

Question forty six. What Are Satellite Assemblies?

Answer :

Satellite assemblies are person for localizing the packages sources. A satellite meeting is a DLL that carries simplest useful resource strings.We usually have one satellite assembly DLL for each language. Because these satellite tv for pc assembly DLLs are separated from the principle assembly (an .Exe or DLL), it's far less difficult to drop in.

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

Answer :

RemoveHandler myobj.MyEvent, AddressOf MyEventHandler.

Question forty eight. What Is .Net

Answer :

.Net is the Development Plateform which provides advanced characteristic centers for the internet and window software along side the window offerings . The .Net is the Middle layer among the running System and the .Net software .The characteristic of .Net that the .Net Component can communicate with each different without demanding approximately the language in which they are at first.. Two major additives are CLR stands for the not unusual Language Runtime and the .Net FrameWork Base instructions. The CLR plays the task of converting the IL to local code Which offers the .Net applications to be language Independent . The Other aspect Like .Net FramwWork Base Classes act as offerings to be provided to the .Net applications.

Question forty nine. 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 via using date parameter, however the date format should be "yyyy,mm,dd".
Ex.CrystaReport1.SelectionFormula = "GLNOTE.L_DT=date(" & a & ")"
The variable 'a' must be assign with formated date.

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

Answer :

You can move for net control of robot.
1. Use chips:- at89c51 microcontroller, l293d motor driving force n max232 converter (for robotic)
2. The usage of vb.Net, develop the gui n use winsock programming for sending pix on internet.
Three. Use mscomm programming in .Internet to move the robotic in a wired reference to the comp.
Four. U can also use Enbedded C for microcontroller programming in location of assembly.Use keil compiler for that n its available for free on internet.
5. Connect a cam to robotic, pass it n switch the pix captured to the customer over internet.

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

Answer :

browser manipulate in vb.Internet.

Question fifty two. 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 assume you need the openfiledialog, except your saving, then savefiledialog. Add one in your task. the most effective utilization allowing you to use in any style would be
Dim OPEN as New Openfiledialog
open.Showdialog()
then when you hit open at the conversation, you could pass that information including
Dim a as string
a = open.Filename()
a will then = D:/Filename.Smt, or anything its actual directory is Ofcourse there greater recomended methods to this technique, however that must get you someplace.

Question fifty three. What Is The Base Class Of .Net?

Answer :

System.Object is the base elegance of .NET
It Supports all training inside the .NET Framework magnificence hierarchy and provides low-level offerings to derived instructions. This is the closing superclass of all instructions in the .NET Framework; it's miles the foundation of the kind hierarchy.

Question 54. Whats The Difference Bt. .Dll Extension And .Exe Extension Files?

Answer :

DLL : It is an inprocess server and runs inside the identical reminiscence area as purchaser software. Problem with dll is that if any error comes in dll, complete software gets crashed.
Exe : It is an out of procedure server and rus as independent software in seperate reminiscence. If error is available in exe, it does now not affact the purchaser software.

Question 55. How To Send Xml File On Server Using Http Protocol?

Answer :

Through SOAP Protocol.

Question fifty six. How A Rotate A Control (rotation Like Shapes Are Rotated In Ms Powerpoint ) In Vb.Internet?

Answer :

we will use adrotator control to use like powerpoint presentation.

Question fifty seven. How Can I Extract The Formated Word(formidable,italic,underline,font,shade Etc) From The Msword File.?

Answer :

using CommonDialog magnificence
eg:
the code to invoke the default font conversation field by way of using the FontDialog manipulate is given below:
personal sub displayfont_click(byval sender as system.Object, byval e as machine.Eventargs) handles displayfont .Click on fontdialog. ShowDialog()
textbox1.Font=fontdialog1.Font
end sub
the code to invoke the default font conversation container by means of instantiating the fontdialog elegance is:
dim fdialog as new fontdialog()
personal sub displayfont_click(byval sender as device.Object,byval e as system.Eventargs) handles displayfont. Click fdialog. ShowDialog()
textbox1.Font=fontdialog1.Font
quit sub

Question 58. Differences Between Vb.Internet And C#, Related To Oops Concepts?

Answer :

1. C# makes use of Must not Inherit, VB.Net uses sealed magnificence
2. C# makes use of Internal, VB.Net uses Friend
three. VB.Net uses with occasions and cease events
four. C# makes use of summary and VB.Net makes use of Must Inherit

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

Answer :

Yes. You need to convert XML to dataset.

Question 60. What Is Different Between Web.Config And Machine.Config And Where It Will Be ?

Answer :

The ASP.NET Web.Config record is used to outline the configuration settings for an ASP.NET application. ASP.NET and the .NET Framework use .Config files to define all configuration alternatives. The .Config documents, inclusive of the ASP.NET Web.Config report, are XML documents. The ASP.NET application configuration settings may be changed through growing a file called Web.Config and saving it in the root folder of the application.This is how the minimum Web.Config report should appear to be:
<!--?Xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.Web>
</system.Web>
</configuration>
The first line of the Web.Config record is the same as the first line for any .Config document and specifies that that is an XML record with utf-eight man or woman encoding type.
There are 2 crucial characteristics of the Web.Config report. The first one is that if you exchange your Web.Config document, you don?T want to re-bring together your ASP.NET utility.
The 2nd one is that the Web.Config file can't be viewed in without delay in a browser.
Server-huge configuration settings for the .NET Framework are described in a record known as Machine.Config. The settings in the Machine.Config record can be changed and those settings have an effect on all .NET applications at the server.What if the Machine.Config document defines specific settings than the ones described for your Web.Config document? The settings within 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.]

Question sixty one. How To Store And Retrieve Images In Sql Server Database Through Vb.Internet?

Answer :

To save photograph in database 1st u want to make desk like this
CREATE TABLE PicImage
(
Picid int,
Pic Image
)
Now in vb.Internet coding u need 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 bypass arrImage in ur insert query.

Question sixty two. What Is The Difference Between Vb And Vb.Internet ?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 orientated however VB 6 is not so.
2.Visual Basic.NET supports multi threading but VB doesnt guide.
Three.Visual primary.NET supports Managed Code extensions however VB doesnt aid.
Four.Both Vb and VB.NET aid command line applications.
5.Both VB and VB.NET aid COM and COM+ packages.
6.VB.NET is strongly typed however VB isn't always so.
Dim cn As SqlConnection
Dim cmd As SqlCommand
Dim dr As SqlDataReader
Dim desk As New DataTable
constructor
initialze the cn item like eg
cn = new
sqlconnection("server=call;database=call;uid=call;pwd=name;")
write it within 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 = "pick out * 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 = desk.NewRow()
For i = zero To dr.FieldCount - 1
row(i) = dr(i)
Next
desk.Rows.Add(row)
End While
DataGrid1.DataSource = desk
Catch ex As Exception
MsgBox(ex.Message & ex.StackTrace)
Finally
cn.Close()
dr.Close()
End Try

Question sixty three. 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 factor – a way to control classified ads on the web website.
• Content Linker factor – a method to direct users via a hard and fast of pag

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

Answer :

if the record isn't always gift i want to show a message as no information what's the code for checking
if you are the use of "DataReader" then
if DataReaderName.HasRows then
statements
else
statements
stop if
in case you are using "DataSet" then
if DataSetName.TABLES.("tablename").ROWS.COUNT=0 THEN
statements.
Cease if

Question sixty five. 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 approach: NotOverridable [MyMethod]
C# For class or technique :sealed[MyClassMyMethod]

Question sixty six. 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 "pick * from StyleImage wherein 
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 "choose * 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 snap shots

Dim rscat As New ADODB.Recordset
Dim mstream As New ADODB.Stream
rscat.Open "select fashion picture.*,
(choose corporation call from exporter 
where companyid=styleimage. Exporterid)as expname
from styleimage wherein 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
Question sixty seven. What Is Sta In .Internet?

Answer :

unmarried-threaded flats (the apartment version method) offers a message-based paradigm for coping with a couple of objects running concurrently. It enables you to jot down extra efficient code via allowing a thread, even as it waits for a while-ingesting operation to complete, to allow any other thread to be finished.

Each thread in a procedure this is initialized as an apartment model procedure, and that retrieves and dispatches window messages, is a unmarried-threaded condo thread. Each thread lives inside its own apartment. Within an apartment, interface recommendations may be handed with out marshaling, and therefore, all objects in one single-threaded condominium thread talk immediately.

A logical grouping of related objects that all execute at the equal thread, and consequently have to have synchronous execution, should stay at the same single-threaded rental thread. However, an apartment version item cannot reside on multiple thread. Calls to objects in different procedures need to be made within the context of the proudly owning system, so dispensed COM switches threads for you automatically when you name on a proxy.

Question 68. How Would You Implement Inheritance Using Vb.Internet ?

Answer :

Using VB.NET we can create a class that gives fundamental functionality so that different instructions can inherit its members. VB.NET offers the 'Inherits' keyword to enforce inheritance. By using the keyword 'Inherits' we can inherit the traits of a class into any other elegance.

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

Answer :

Assemblies are constructing blocks of framework. There are specially two styles of assemblies
a) Private Assembly
b) Shared Assembly

Question 70. What Is The Diff Between Vb Mdi Form And .Net Mdi Form?

Answer :

In VB MDI form is created via adding MDI Form to the venture and adding baby forms by using placing MDICHILD belongings of the child form. In .NET there may be no MDI shape, any shape may be made a MDI parent via placing IsMdiContainer property to TRUE.
Furthermore, there are changes in the residences, methods and simple conduct of the MDI Forms, like capability to set Background Color isn't available in .NET, capability to add controls to MDI shape(even though they do not behave nicely), ActiveForm to ActiveMdiChild, Arrange technique to LayoutMdi, etc.

Question seventy one. What Is The Advantage Of Option Strict On?

Answer :

Visual Basic allows conversions of many data types to other facts sorts. Data loss can arise while the value of 1 facts kind is converted to a information kind with less precision or smaller ability. A run-time mistakes occurs if this sort of narrowing conversion fails. Option Strict guarantees assemble-time notification of those narrowing conversions in order that they may be prevented.
In addition to disallowing implicit narrowing conversions, Option Strict generates an error for late binding. An item is overdue bound whilst it's far assigned to a variable that is declared to be of kind Object.
Because Option Strict On affords sturdy typing, prevents accidental type conversions with information loss, disallows overdue binding, and improves overall performance, its use is strongly advocated.

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

Answer :

Serilization: It is the manner of maintaning object state inside the form of a circulation.
Deserilization: It is the technique of analyzing the circulation and construct the item.
Uses:(Remoting Concept)
1) making item country chronic
2) transmitting the object from one gadget to another machine.

Question seventy three. What Is Misl Code?

Answer :

MSIL code is the Microsoft Intermediate Language. This is the code created through the CLR from the source code. This MSIL code is converted to gadget/local code by way of JIT compiler. This machine code is without a doubt the code which runs.

Question seventy four. What Is The Difference Between A "jagged Array" And Multidimensional Array" ?Can Anyone Show Me It Practically ?

Answer :

multidimentional array has same length in all dimentions however jagged is the kind of multidimentional array which has exceptional size for its dimensions.

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

Question seventy five. What Is The Exact Defination Of "item"?

Answer :

A actual world entity which has a few precise attributes associated with its traits and operations or strategies associated with its attributes.

Question seventy six. How Do You Use Two Datareaders At The Same Time In A Vb.Net Windows Application ?

Answer :

as an example:
while(datareader1.Read())
even as(datareader2.Read())
end even as
cease whilst
this isn't always allowed despite the fact that each datareaders have  unique units of records.

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

Answer :

dispose(): need to launch all of the sources that it owns.
Near():remaining the software
exit():Exiting from the loop
quit():stops the execution of the web page/characteristic/technique

Question 78. What Is The Purpose Of Using Executenonquery?

Answer :

System.Data.OleDB
It includes the items that we use to hook up with a data supply through an OleDB company , along with OleDb
Connection, OleDBCOmmand System.Data.SqlClient
It includes items that we use to connect with a facts source via Tabular information flow interface provided by means of Microsoft Sql Server. This can be commonly used to offer higher overall performance because it removes some of the intermediate layers required by the OleDB provider.

Question 79. What Is The Advantage Of Packaging Over Xcopy In .Net?

Answer :

Xcopy approach is to in reality replica your net utility documents to the production server tough power and set a digital directory there. The setting of a virtual directory is wanted by means of several deployment schemes and may be carried out from Internet Information Manager Microsoft Management Consol.

It's continually proper to package your internet programs such that they're smooth to set up at the manufacturing server then the conventional xcopy in which the developers should use the command line.

Question 80. What Is The Difference Between Datatable And Dataset?

Answer :

Data desk is a collection of report's that consist the unmarried table Whenever dataset is collection of facts desk and it's far provide interface between database and datatable 1 dataset consist more than one desk.

Question eighty one. What Is The Size Of .Net Object?

Answer :

Default length when a class gets loaded in memory is eight bytes.

Question eighty two. 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 without a doubt i used the delegates while there's problem in VB.Net 2005 wherein each manage is already threaded, to apply my personla thread on these manage 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)
quit sub
Public Sub c1()
Me.Label1.Text = ct1
Me.Label1.Refresh()
End Sub

Question eighty three. What Make .Internet A Language Independent Platform Options Are: 1. Msil 2. Il 3. Clr four. Jit

Answer :

All alternatives 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 manufacturing PC. It converts MSIL / IL code to local / device understandable code with the aid of the assist of its complier known as JIT. MSIL / IL(Microsoft Intermediate Language): .Net language compliers generates IL code that's managed code as it's far managed by using .Net (CLR).

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

Question 84. What Is The Difference Between Manifest And Metadata?

Answer :

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

Question eighty five. What Is The Use Of Console Application?

Answer :

Console Applications are command-line orientated packages that permit us to examine characters from the console, write characters to the console and are finished in the DOS version. Console Applications are written in code and are supported via the System. 

Question 86. How Vb Implements The Disconnected Architecture As Like Vb.Internet?

Answer :

In VB to put into effect a disconnected recordset, after you have got crammed the recordset with the information, set its lively connection property to “Nothing”. That breaks the relationship to the database. You can locally additionally save the statistics of the recordset by using the use of its Save characteristic.

Question 87. What Is The Difference Between .Dll Extension And .Exe Extension Files?

Answer :

The predominant distinction among .Dll and .Exe is
.Dll is the in procedure component wherein it take up the purchaser’s reminiscence area to run. So the communication between the utility and thing (dll) could be very speedy.
.EXE is the Out of manner factor. It uses its own reminiscence (no longer software memory) to run the aspect. The verbal exchange among the software and component is sluggish whilst compared to .Dll

Question 88. What Is Different Between Web.Config And Machine.Config And Where It Will Be?

Answer :

The settings made in the internet. Config report are implemented to that unique internet software simplest whereas the settings of gadget.Config record are carried out to the entire asp.Internet application.

Question 89. Differences Between Vb.Internet And C#, Related To Oops Concepts?

Answer :

VB.NET is a home windows utility in which as C# is a console.

Question ninety. What Is Non_deterministic Finalization?

Answer :

The Finalize technique is absolutely accomplished by way of the runtime on a unique thread allotted with the aid of the Garbage Collector (GC).The Finalize method is executed every time the runtime feels it's far appropriate, inclusive of while a low-resource circumstance takes place and this case is often called non-deterministic finalization.

Question 91. 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

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

Answer :

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

Question ninety three. What Do You Mean By Option Strict On?

Answer :

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

Question ninety four. What Are Jagged Arrays ?

Answer :

Jagged array is an array inner an array is referred to as a jagged array.

Question 95. How Can We Remove Handlers At Run Time?

Answer :

Remove Handler myobj.MyEvent, AddressOf MyEventHandler.

Question 96. Write The Role Of New Keyword?

Answer :

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

Question 97. What Is Branching Logic Control In Vb.Net?




CFG