• +91 9723535972
  • info@interviewmaterial.com

Asp.Net Interview Questions and Answers

Asp.Net Interview Questions and Answers

Question - 21 : -   What are the Application_Start and Session_Start subroutines used for?

Answer - 21 : - This is where you can set the specific variables for the Application and Session objects. 

Question - 22 : - Whats an assembly?

Answer - 22 : - Assemblies are the building blocks of the .NET framework.

Question - 23 : - What is the Global.asax used for?

Answer - 23 : - The Global.asax (including the Global.asax.cs file) is used to implement application and session level events. 

Question - 24 : -   Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

Answer - 24 : -   Valid answers are: ·  A DataSet can represent an entire relational database in memory, complete with tables, relations, and views. ·  A DataSet is designed to work without any continuing connection to the original data source. ·  Data in a DataSet is bulk-loaded, rather than being loaded on demand. ·  There's no concept of cursor types in a DataSet. ·  DataSets have no current record pointer You can use For Each loops to move through the data. ·  You can store many edits in a DataSet, and write them to the original data source in a single operation. ·  Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources. 

Question - 25 : -   What is the difference between Server.Transfer and Response.Redirect?  Why would I choose one over the other?

Answer - 25 : -   Server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client's browser.  This provides a faster response with a little less overhead on the server.  Server.Transfer does not update the clients url history list or current url.  Response.Redirect is used to redirect the user's browser to another page or site.  This perform as a trip back to the client where the client's browser is redirected to the new page.  The user's browser history list is updated to reflect the new address.

Question - 26 : -   What is CTS (Common Type System)?

Answer - 26 : -   It defines about how Objects should be declard, defined and used within .NET. CLS is the subset of CTS.

Question - 27 : - What is Boxing and UnBoxing?

Answer - 27 : -   Boxing is implicit conversion of ValueTypes to Reference Types (Object). UnBoxing is explicit conversion of Reference Types (Object) to its equivalent ValueTypes. It requires type-casting.  

Question - 28 : -   What is the difference between Value Types and Reference Types?

Answer - 28 : -   Value Types uses Stack to store the data where as the later uses the Heap to store the data.  

Question - 29 : -   What are the different types of assemblies available and their purpose?

Answer - 29 : - Private, Public/shared and Satellite Assemblies

Question - 30 : - What is view state and use of it?

Answer - 30 : -   The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested for the first time versus when the form is posted (sent to the server), which  allows you to program accordingly.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners