1. What are the different types of Assembly?  

There are two types of assembly Private and Public assembly. A private assembly is normally used by a single application, and is stored in the application's directory, or a sub-directory beneath. A shared assembly is normally stored in the global assembly cache, which is a repository of assemblies maintained by the .NET runtime. Shared assemblies are usually libraries of code, which many applications will find useful, e.g. Crystal report classes that will be used by all application for Reports.

2. What is Difference between NameSpace and Assembly?  

Following are the differences between namespace and assembly: • Assembly is physical grouping of logical units, Namespace, logically groups classes. • Namespace can span multiple assembly.

3. Where is version information stored of an assembly?  

Version information is stored in assembly inside the manifest

4. What is Manifest?  

Assembly metadata is stored in Manifest. Manifest contains all the metadata needed to do the following things (See Figure Manifest View for more details): • Version of assembly. • Security identity. • Scope of the assembly. • Resolve references to resources and classes. The assembly manifest can be stored in a PE file either (an .exe or) .dll with Microsoft intermediate language (MSIL code with Microsoft intermediate language (MSIL) code or in a stand-alone PE file, that contains only assembly manifest information.

5. What is an assembly ?  

it is unit of deployment.It is a file generated on successful compilation of .Net application. it can be either a DLL or an EXE.

6. what are the features of Assembly?  

a) They are self descrining. They consists of metadata which tells what are the methods,propeties etc present in the assembly. b)Assembly can be loaded side-by side thus achieveing side by side execution. c)installation of an assembly is easier. d)Assemblies solve the DLL HELL problem

7. Whats the diff bt a DLL and and EXE  

DLL EXE Dynamic Link Library with .dll extension Executable with .exe extension Can have many entry points Has only one entry point Does not contain UI Contains UI It is an in-process file.that means it runsin someone else’s memory It is out-process file.It can run independently. Its standalone.

8. What the physical location of assembly ?  


9. Different types of Assembly ?  

a)Private Assembly An assembly used by a single application is called private assembly. Its present in the bin folder. b) SharedAssembly An assembly used by more than one application.Its present in GAC. c)Satellite Assembly These are resource files which are compiled to assemblies.

10. What is DLL Hell ?  

DLL HELL is a problem which arises when a new version of application with a new set of DLL overrides the older version.The application which are using older version of DLL crashes because those have been replaced by new DLL which are not compatible with the old applicaitons.

11. How is DLL Hell solved in .Net?  

It is solved with the help of Assemblies.Assemblies allow different versions of DLL to co-exist among themselves.This feature is called Versioning.

12. .What is Process ?  

Instance of computer program that is being executed.

13. What are Application domains?  

The domain in which your application runs. They provide isolation for running applications. They are hosted inside Process.Single process can have more than one application domain. Communication between them can be achieved with the help of proxy.

14. What is PE file ?  

Portable Executable File is either a DLL or an EXE.It is generated when a program is compiled.It consists of 3 part- PE Header MSIL Metada

15. What are the contents of an Assembly ?  

An assembly consists- a)Manifest b)IL Code c)Resource Files d)Metadata

16. What is manifest ?  

Manifest of an assembly contains the following- a)Identity--consists of Assembly Name,Version No,Culture and Public Key Token. b)List of File present in Assembly. c)A list of referenced assemblies. d)A set of permission requests.

17. What is metadata ?  

Contains all the type and member information present in the code.

18. What is Single File and MultiFile assembly ?  

Single File Assembly-it consists of only one file. Multifile Assembly-consists of more then one files like- module(.netmodule), resource file(x.jpg) etc.All of them can be linked to form one assembly.

19. Whats the diff bt assembly and module ?  

Assembly contains the manifest info. modules does not have manifest info.They only contain metadata.They cannot be created in VS

20. Can you compile an assembly with more than one file ?  


.Net Interview Question

PHP Interview Question

Java Interview Question

AngularJS Interview Questions