Saturday, February 23, 2008

.NET : Framework & ASP.NET Questions

1.)Various Providers available in .NET:

1. Odbc Data Provider:System.Data.Odbc
2. OleDb Data Provider:System.Data.OleDb
3. SqlClient Data Provider:System.Data.SqlClient
4. OracleClient Data Provider:System.Data.OracleClient

2.)What is MSIL code?
This is an acronym for Microsft Intermediate Language. In .net code that a developers develops will be complied in to MSIL code by the respective compilers and this code will be targeted towards the CLR which inturn contains JIT Compilers .This MSIL code will be converted in to the machine understandable code by JIT compiler

3.What are various types of assemblies ?
1) shared assembly
2) private assembly
3) satellite assembly

4. What is an assembly and what does manifest consists?
An Assembly is the building block of .net having metadata,mainfest,culture info,ver no. Mainfest cantain the information about the Metadata

5. What is boxing and unboxing?
Box is used to convert Value type to reference type(ie. Object)
Unboxing is to convert Reference typr to Value Type

6. Types of caching?
There are 3 types of caching
1.Page caching
2.Fragment Caching
3.Output Caching

7. What are various authentication mechanisms in ASP.NET?
There are three type of authentication mechanism in asp.net:

1. Form Authentication
2. Window Authentication
3. Passport Authentication

8. What is CTS, CLS and CLR?
Common Type System CTS :A fundamental part of the .NET Framework's Common Language Runtime (CLR), the CTS specifies no particular syntax or keywords, but instead defines a common set of types that can be used with many different language syntaxes.

Common Language Specification (CLS):The Common Language Specification (CLS) describes a set of features that different languages have in common. The CLS includes a subset of the Common Type System (CTS).

The CLR is a multi-language execution environment

9. What are the main advantage in .net?
It is a Language independent, It supports all most all 40 LAngauges including third party languages

10. Where does the dispose method lie and how can it be used to clean up resources?
The dispose method is available in System.IDisposable interface. If you want to provide cleanup mechanism then implement this interface and provide the definition for dispose () method.

11. What is value type and reference type?
In simple words value types are those data types that store there values on stack memory and values are settle down at compile time example are "ENUM" and reference type are those data type that store there values in heap memory and settle down while run time i.e dynamic types examples are strings, class type etc

12. How can u manage sessions?
Session Can be managed in 3 ways using
1.in-proc
2.out-proc and
3. sql server.

13. How can u manage state?
Managing state is done by two ways
1. client side techniques like viewstate, querystring, cookies.
2. Server Side techniques like Application state, Session state.

1 comment:

joshua@india said...

very good my friend ..now u start to expose your thoughts of tech..very good