Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing

.Net programming Interviews Questions


.NET Assemblies question and answers

Q.1.What is a .NET Assembly?

A .NET Assembly is a compiled code library used in .NET applications, containing IL code, metadata, and optional resources.

Q.2 What are the main types of assemblies in .NET?.

Answer: The main types are Private Assemblies and Shared Assemblies.

Q.3 Where are Shared Assemblies stored?

Answer: Shared Assemblies are stored in the Global Assembly Cache (GAC).

Q.4 What is the Global Assembly Cache (GAC)?.

The GAC is a machine-wide repository used to store assemblies that are shared by multiple applications.

Q.5 What is the purpose of the AssemblyInfo.cs file?

Answer: The AssemblyInfo.cs file contains metadata about the assembly, such as version information and other attributes


What is a strong-named assembly?

Answer: A strong-named assembly has a unique identity, including a name, version, culture, and public key token, ensuring versioning and integrity.

Q.7 What file extensions are used for .NET assemblies?.

.NET assemblies use .exe for executable files and .dll for library files

Q.8 How do you add an assembly reference in a .NET project?

Add an assembly reference via Visual Studio's "Add Reference" dialog or using the dotnet add reference CLI command

.

Q.9 What is the Assembly.Load method used for?

Answer: The Assembly.Load method is used to dynamically load an assembly at runtime.

.

Q.10 What information does metadata in a .NET assembly contain?

Metadata contains information about the types, members, references, and other data necessary for the CLR to execute the code.

Advertisement





it pathshaala : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML 5

Python

java

C++

C

JavaScript

Campus Learning

C

C#

java