Technical Interview Questions and Answers :: .NET
1. What is IL? (What is MSIL or CIL, What is JIT?)| | |
2. What is CLR?| | |
3. What is CTS?| | |
4. What is CLS?| | |
5. Which class does the web page belong to in ASP.Net?| | |
6. Which class deals with the user's locale information?| | |
7. What data type does the RangeValidator control support?| | |
8. What is the difference between Server.Transfer and Response.Redirect?| | |
9. Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?| | |
10. What is ViewState?| | |
MSIL is the CPU –independent instruction set into which .Net framework programs are compiled. It contains instructions for loading, storing initializing, and calling methods on objects.
CLR also known as Common Language Run time provides a environment in which program are executed, it activate object, perform security check on them, lay them out in the memory, execute them and garbage collect them.
The common type system is a rich type system, built into the common language runtime, which supports the types and operations found in most programming languages
CLS also known as Common Language Specification defines the rules which all language must support, in order to be a part of .Net framework. The Common Language Specification is a set of constructs and constraints that serves as a guide for library writers and compiler writers. It allows libraries to be fully usable from any language supporting the CLS, and for those languages to integrate with each other. The Common Language Specification is a subset of the common type system. The Common Language Specification is also important to application developers who are writing code that will be used by other developers.
Integer, Date and String.
Server.Transfer, transfers the control of a web page, posting a form data, while Response.Redirect simply redirects a page to another page, it can not post a form data to another page. Server.Transfer is more efficient over the Response.Redirect, because Response.Redirect causes a round trip to server as the page is processed once again on the client and a request is made to server there after.
All the global declarations or the variables used commonly across the application can be deployed under Application_Start. All the user specific tasks or declarations can be dealt in the Session_Start subroutine.
ViewState is a .Net mechanism to store the posted data among post backs. ViewState allows the state of objects to be stored in a hidden field on the page, saved on client side and transported back to server whenever required.