Interview Question for .NET Part 1

by Pankaj
View My Profile 20. November 2010 07:02
Share on Facebook

 

In the series of technical interview question, this is my second post. Here i am posting very basic questions related with .NET concept. Following  questions are usually asked in any .NET interview.  

        

1) What is the CLR?

 

CLR = Common Language Runtime. It is runtime environment provided which has standard resources that any .NET program can take advantage of,regardless of programming language. CLR runtime manages memory,thread execution, code safety verification, compilation and other system services.

2) What is the CTS?

 

CTS = Common Type System. This is the range of types that the .NET runtime understands, and therefore that .NET applications can use. Not all .NET languages will support all the types in the CTS. The CTS is a superset of the CLS.

3) What is the CLS?


CLS = Common Language Specification. All .NET languages supports CLS. The idea is that any program which uses CLS-compliant types can interoperate with any .NET program written in any language.

4)What is an Assembly?

 

An Assembly is a  logical unit of code.Assembly physically exist as DLLs or EXEs. Every assembly file contains information about itself. This information is called as Assembly Manifest.

5) What is IL?

 

IL = Intermediate Language. Also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). .Net code of any language gives IL after compilation. The IL is then converted to machine code at the point where the software is installed, or at run-time by a Just-In-Time (JIT) compiler.

6) What is managed code?

 

Code that has its execution managed by CLR. It is the responsibility of framework to provide memory management, security etc.The necessary information is encoded in intermediate language and associated metadata.

7) What is difference between DLL and EXE?

 

Dll is class library but an exe is executable. Code having main() method is kept inside EXE but other supporting files are kept inside DLLs.

8)What is COM?

 

COM:Component Object Model.It is method by which different application  of different language can talk with each other. It is interoperability standard.

9)What is GC (Garbage Collection)?

 

GC is one of the feature provided by CLR which runs in the background collecting unused object references.Developer need not to necessarily destroy and free the memory manually.

10)What is Reference type and value type ?

 

Reference Type:

 

Reference type are those datatype which contains address of memory where actual data is stored. Reference types are allocated on the managed CLR heap. The value of a reference type is the location of the sequence of bits that represent the type's data.

 

Value Type:

 

Value types are type which keeps value within their own memory location.Value types are allocated on the stack just like primitive types. Value types are not instantiated using new, and out of scope when the function they are defined within returns.

 

Please go through these questions and i will suggest you to go into detail of every key word i mentioned, from different resources available on net.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , ,

Technical Questions

Comments

Navigation Options

Tag cloud

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar