Dot Net Interview questions for 3+ years of experience - Part-5

Previous questions
Next Questions


Q1)Difference between Session object and Profile object in ASP.NET?
Ans)
Profile
-------
1.Profile object is persistent.
2.Profile object uses the provider model to store information.
3. Profile object is strongly typed.
4. Mostly used for anonymous users.

Session
--------
1.Session object is non-persistant.
2.Session object uses the In Proc, Out Of Process or SQL Server Mode to store information.
3. Session object is not strongly typed.
4. Used for authenticated users.
--------------------------------------------
Q2)What are the new features in Visual Basic 10?
Ans)
1.Multi-Line Statement Lambdas
2.Sub Lambdas
3.Auto-implemented Properties
4.Collection Initializers
5.Array Literals
--------------------------------------------
Q3)How do we implement ASP.NET Globalization?
Ans)
• Create a resource file and compile them into a binary resource file.
• Create satellite assembly for each of the resource file for each culture.
• Store them in separate folder for easy access and replacement.
• Read the resources from the satellite assembly that is stored in different folders based on the location and culture.
-------------------------------------------
Q4)How do you provide secured communication in ASP.NET?
Ans)
ASP.NET provides secured communication using Secure Sockets Layer. To use this SSL application we need to have an encryption key called a server certificate configured in IIS.

When a user requests a secured page, the server generates an encryption key for the user’s session. The encrypted response is then sent along with encryption key generated. In the client side, the response is then decrypted using same encryption key.
-------------------------------------------
Q5)What are the advantages and disadvantages of using Outproc Session State?
Ans)
The advantages of using session state are:

• It ensures data durability, since session state retains data even if ASP.NET work process restarts.
• It works in multi-process configuration, thus ensures platform scalability.

The disadvantages of using session state are:

• Since data in session state is stored in server memory, it is not advisable to use session state when working with large amount of data.
• Session state variable stays in memory until you destroy it, so too many variables in the memory that effects on the performance of the session state.
---------------------------------------------
Q6)What is Session Identifier?
Ans)
Session Identifier is used to identify session. It has SessionId property. When a page is requested, browser sends a cookie with a session identifier. This identifier is used by the web server to determine if it belongs to an existing session or not. If not, a Session ID (120 - bit string) is generated by the web server and sent along with the response.

Previous questions
Next Questions