Your Ad Here

Wednesday, December 31, 2008

Recent ASP.Net Interview Questions & Answers

Q : What is ASP.NET?
A : ASP.NET is a compiled code and run the under CLR Environment because it is a Managed Code with OOPS Accepted.

Q : Differentiate between execute query and execute nonquery.?
A : Execute Query is the method of which is used to return the result of the command like select Query. Execute is Update Query.
The Execute NonQuery is used to return the Query OS the statement like the update Delete Insert which returns No data..

Q : What do you mean by the authentication and authorization?
A : Authentication is validating user rights
Authorization is validating credentials

Q : What are the types of memory management?
A :Memory management is many types such as
• Storage memory Management.
• I/O Memory Management etc ..

Q : What is a Constructor in ASP.NET?
A : Constructor is the first method that are called on instantiation of a type.
It provides the way to set of default values for data before the object is available for use.
Performs other necessary functions before the object is available for use.

Q : Explain the serialization in ASP.NET?
A : Serialization is a process of converting an object into a stream of bytes. .Net has 2 serializers namely XMLSerializer and SOAP/BINARY Serializer. Serialization is maily used in the concept of .Net Remoting.


Q :What is Destructor in ASP.NET?

A : destructor is called the just before an object is destroyed. It can be used to run clean-up code. You cannot control when a destructor is called since object clean up by common language runtime.

Q : what are the components of web form in ASP.NET explain it?
A: Server controls : The server controls are Hypertext Markup Language (HTML) elements that include a runat=server attribute. They are provide the automatic state management and server-side events and respond to the user events by executing event handler on the server.

Data controls : Data controls are allow to the connect to the database, execute command and retrieve data from database.

HTML controls :These controls also respond to the user events but the events processing happen on the client machine.


System components : System components provide access to system-level events that occur on the server.

Q : Explain the different parts that constitute ASP.NET application?
A : ASP.NET Applications are three parts of constitute there are,
(i) Content files (ii) Program logic files (iii) Configuration file
Content files include static text, images and can be include elements from database.
Program logic files exist as DLL file on the server that responds to the user actions.
Configuration file to the offers various settings that determine how is the application runs on the server.

Q : Describe the sequence of action takes place on the server when ASP.NET application starts first time?
A : Following are the sequences:
IIS starts ASP.NET worker process>> worker process loads assembly in the memory>>IIS sends the request to the assembly>>the assembly composes a response using the program logic>> IIS returns the response to the user in the form of HTML.

Q : What’s the main difference between FormLayout and GridLayout ?
A :FormLayout is a little of different only experience Web Developer used this one reason is it is helpful for wider range browser. If there is any absolute positioning we can notice that there are number of DIV tags. But in FormLayout whole work are done through the tables. But Grid Layout helps in providing absolute positioning of every control placed on the page. It is easier to develop page with absolute positioning because control can be placed any where according to our requirement.

Q :Differentiate between WebCustomControl and in WebUserControl?
A: Web custom controls:-Web Custom Control is a typical to create and good for the dynamic layout and another thing is it have full tool support for user and a single copy of control is required because it is placed in Global Assembly cache.
Web user controls :- Web User Control is Easier to create and another thing is that its support is limited for users who use a visual design tool one gud thing is that its contains static layout one more thing a seprate copy is required for each application.

Q : What Language is familiar to CLR?
A: Any language that can be compiled into Microsoft Intermediate Language (MSIL) is considered a .NET-compliant language. Following are a few part of the popular .NET-compliant languages supported by CLR.

0 comments:

Your Ad Here