.Net Framework

.Net Framework Interview Questions & Answers

1. What is Microsoft .Net Framework?


A programming platform created by Microsoft that allows developer to develop, run, and deploy the applications and services that use .NET technologies, such as such as desktop & web  applications and Web services.

The .NET Framework contains three major parts:
Common Language Runtime (CLR)
.NET Framework Class Library (FCL)
Common Type System (CTS)

.Net framework supports multiple programming languages such as C#.Net, Visual Basic & Visual C++ etc, so that we can use code of one programming language into other languages.

2. What are the main components of .NET Framework?


The .NET Framework contains three major components:
  • Common Language Runtime (CLR)
  • .NET Framework Class Library (FCL)
  • Common Type System (CTS)

3. What is Common Language Runtime (CLR)?


Common Language Runtime

The .NET Framework provides a run-time environment called the common language runtime.  A runtime is an environment in which programs are executed. CLR is the heart of the .Net framework and it does 4 important things as below,
1. Garbage collection / Memory Management
2. Code Access Security (CAS)
3. Code Verification
4. Compilation of IL to Native translation. 

4. What is .Net Framework Class Library (FCL)?

The .NET Framework class library is collections of namespaces, classes, interfaces & value types that provide access to system functionality. It is the foundation on which .NET Framework applications, components, and controls are built.
For Ex.:  In .Net framework class library we have System namespace,
Using System; // is part of Framework class library.

5. What is Common Type System (CTS)?

Microsoft .Net framework supports multiple programming languages, so in order to communicate between different programming languages Microsoft introduces CTS.
CTS are set of standard data types which are common between all the .net programming languages, so that one language can communicate easily with another language.
CTS convert the data types of all .Net programming languages to common data type so that different programming languages can communicate easily.

For Ex. OR How CTS converts the data type to a common data type

In VB.Net we declare integer as Integer and in C#.net we declare integer as int. So in order to communicate between this languages CTS coverts them into common data type as “System.Int32”.

Common Type System

No comments:

Post a Comment