Monday, October 5, 2009

Dotnet Interview Questions and answers (1-10)

1.What is DOTNET?

According to Microsoft, .NET is a "revolutionary new platform, built on open Internet protocols and standards, with tools and services that meld computing and communications in new ways".

.NET is a
- Environment for developing and running software applications,
-Featuring ease of development of web-based services,
-Rich standard run-time services available to components written in a variety of programming languages, and inter-language and inter-machine interoperability.

2.Does .NET only apply to people building web-sites?

No. You can develop windows applications ie the stand alone application For your need and also the mobile applications. But .NET has lots to interest you in web applications(ASP.NET).

3.When was the first version of .NET released?

The first version of the .NET 1.0 SDK was made available to public around 6pm PST on 15-Jan-2002. At the same time, the version of Visual Studio.NET was made available to MSDN subscribers.

4.What platforms does the .NET Framework run on?

.Net Framework runs on Windows XP, Windows 2000, NT4 SP6a and Windows ME/98.
Some parts of the framework do not work on all platforms - for example, ASP.NET is only supported on Windows XP and Windows 2000. Windows 98/ME cannot be used for development.
The Mono project is attempting to implement the .NET framework on Linux.

5. What languages does the .NET Framework support?

Micro Soft provides compilers for C#, C++, VB and Jscript and its said as .NET Framework supports more than 40 languages.

6.What is the CLR?

CLR - Common Language Runtime.
- It is the heart and soul of the .NET Framework.
- Program written in c# and other .NET languages are executed in C#.
- It also supports cross language interoperability.

Services Of CLR :-
To load and execute programs.
To Islolate memory for applications.
To Verifying type safety
To Compile of IL into native executable code.
To provide metadata.
To mange memory(Garbage collection)
To enforce Security
To mange exceptions and errors.


7. What is the CTS?

CTS - Common Type System.
CTS supports various types and operations found in most prograaming languages and therefore calling one language from other does not require type conversions.so we can program in other languages.
The CTS is a superset of the CLS.

8. What is the CLS?

CLS -Common Language Specification.
- This is a subset of the CTS.
-The idea is that any program which uses CLS-compliant types can interoperate with any .NET program written in any language.
-In theory this allows very tight interop between different .NET languages - for example allowing a C# class to inherit from a VB class.

9. What is IL?

IL - Intermediate Language. Also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language).
All the .NET source code (of any language) is compiled to IL. Then the IL is converted to machine code at run-time by a Just-In-Time (JIT) compiler.

10. What is C#?

C# is aa language designed by Microsoft to work with the .NET framework.
Microsoft describes C# as follows:
"C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced “C sharp”) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of Visual Basic and the raw power of C++."

No comments:

Post a Comment