+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

.Net Assembly Interview Questions and Answers

1
What is an assembly?

Assemblies are the basic building blocks required for any application to function in the .NET realm. They are partially compiled code libraries that form the fundamental unit of deployment, versioning, activation scoping, reuse, and security. Typically, assemblies provide a collection of types and resources that work together to form a logical unit of functionality. They are the smallest deployable units of code in .NET. Compared to the executable files assemblies are far more reliable, more secure, and easy to manage. An assembly contains a lot more than the Microsoft Intermediate Language (MSIL) code that is compiled and run by the Common Language Runtime (CLR). In other words, you can say that an assembly is a set of one or more modules and classes compiled in MSIL, and metadata that describes the assembly itself, as well as the functionalities of the assembly classes.

2
What does an assembly contain?

An assembly contains following information:
Assembly manifest: Information about the assembly.
Type metadata: Information about the types.
IL Code
Resource files.

An assembly manifest contains the following information:

Identity of the assembly
Types and resources
Files
Security permissions

3
The AssemblyInfo.cs file stores the assembly configuration information and other information, such as the assembly name, version, company name, and trademark information. (True/False).

True.

4
Explain the concepts and capabilities of Assembly in .NET.

An assembly is a collection of files (dll’s, exe’s), group of resources that help in creating a logical unit of functionality. It forms the basic building block for deployment, reusability and security issues.

  • It provides a CLR environment.
  • It helps in maintaining security as it grants grant or denial of permissions.
  • When an application starts only assemblies the application initially calls must be present.
  • Assemblies can be either static or dynamic.
  • Assemblies help in resolving versioning issues.
5
Name the different components of an assembly.

An assembly is a logical unit that is made up of the following four different types of components:

  • Assembly manifest
  • MSIL source code
  • Type metadata
  • Resources
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US