Whats an assembly ?

1 Answer

Answer :

Answer: Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the context of an assembly.

Related questions

Description : What’s the difference between private and shared assembly? 

Last Answer : Answer: Privateassembly is used inside an application only and does not have to be identified by a strong name. Shared assembly can be used by multiple applications and has to have a strong name.

Description : Which one of the following tools is used to view the metadata information contained in a .NET assembly? Select Answer:  1. al.exe  2. ilasm.exe  3. vbx.exe  4. csc.exe  5. ildasm.exe

Last Answer :  5. ildasm.exe

Description : What is a shared assembly? How would you create one?

Last Answer : An assembly is an assembly of which only a single copy is installed per machine. This copy can be shared by multiple applications. To make an assembly a shared assembly, you must first assign it a strong name, and then install it to the global assembly cache.

Description : Describe how to sign your assembly with a strong name. Why would you want to do this?

Last Answer : To sign your assembly with a strong name, you must have access to a key file or create one with the strong name utility (sn.exe). You then specify the key file in the AssemblyInfo file and ... identity, a strong name is required if you want to install your assembly to the Global Assembly Cache.

Description : How do you specify a custom attribute for the entire assembly (rather than for a class) ?

Last Answer : Answer: Global attributes must appear after any top-level using clauses and before the first type or namespace declarations. An example of this is as follows: using System; [assembly : ... that in an IDE-created project, by convention, these attributes are placed in AssemblyInfo.cs.

Description : Where’s global assembly cache located on the system ?

Last Answer : Answer: Usually C:\winnt\assembly or C:\windows\assembly.

Description : How can you debug failed assembly binds ? 

Last Answer : Answer: Use the Assembly Binding Log Viewer (fuslogvw.exe) to find out the paths searched.

Description : What is purpose of Assembly Linker or define SDK Tool in .NET Framework?

Last Answer : Answer: In .NET whole the working should be with the helps of DLLs.So all of Visual Studio .Net compilers gernate assemblies or u can say dll.If we want to create an assembly with ... Studio .Net .This multi file can contain modules that are written in diffrenet langauage in one application.

Description : What is the difference between a namespace and an assembly name?

Last Answer : A namespace is a logical naming scheme for types in which a simple type name, such as MyType, is preceded with a dot-separated hierarchical name. Such a naming scheme is completely under ... design-time naming convenience, whereas an assembly establishes the name scope for types at run time.

Description : What is a Assembly ?

Last Answer : An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as ... The self-describing nature of assemblies also helps makes zero-impact install and XCOPY deployment feasible. 

Description : What is a satellite assembly?

Last Answer : When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies.

Description : What are the ways to deploy an assembly?

Last Answer : An MSI installer, a CAB archive, and XCOPY command. 

Description : What does the assembly manifest contain? 

Last Answer : Assembly manifest lists all names of public types and resources and their locations in the assembly.

Description : What is an assembly identity?

Last Answer : Assembly identity is name, version number, and optional culture, and optional public key to guarantee uniqueness. 

Description : What is an assembly?

Last Answer : Assemblies contain logical units of code in MSIL, metadata, and usually a manifest. Assemblies can be signed and the can dome in the form of a DLL or EXE. 

Description : What is a satellite assembly?

Last Answer : When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies. 

Description : What are the ways to deploy an assembly?

Last Answer : An MSI installer, a CAB archive, and XCOPY command. 

Description : Mention the assembly name where System namespace lies in C#?

Last Answer : Assembly Name – mscorlib.dll

Description : What’s a strong name ?

Last Answer : Answer: A strong name includes the name of the assembly, version number, culture identity, and a public key token.

Description : What’s the advantage of using System.Text.StringBuilder over System.String? 

Last Answer : StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it’s being operated on, a new instance is created.

Description : What’s the difference between the Debug class and Trace class? 

Last Answer : Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.

Description : What’s the difference between // comments, /* */ comments and /// comments?

Last Answer : Single-line comments, multi-line comments, and XML documentation comments.

Description : What’s a multicast delegate?

Last Answer : A delegate that has multiple handlers assigned to it. Each assigned handler (method) is called. 

Description : What’s a delegate? 

Last Answer : A delegate object encapsulates a reference to a method. 

Description : What’s the implicit name of the parameter that gets passed into the set method/property of a class?

Last Answer : Value. The data type of the value parameter is defined by whatever data type the property is declared as.

Description : What’s the difference between an interface and abstract class?

Last Answer : Answer: An abstract class and Interface both have method only but not have body of method.The difference between Abstract class and An Interface is that if u call Ablstract class then u have to call ... type, Parameter type, Parameter Number all must be same . Only body of method can change. 

Description : What’s an abstract class?

Last Answer : Answer:Classes that cannot be instantiated. We cannot create an object from such a class for use in our program. We can use an abstract class as a base class, creating new classes that will inherit from ... can inherit from a non-abstract class. In C++, this concept is known as pure virtual method.

Description : What’s the C# syntax to catch any possible exception?

Last Answer : A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.

Description : What’s the .NET collection class that allows an element to be accessed using a unique key? 

Last Answer : HashTable. 

Description : What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?

Last Answer : The first one performs a deep copy of the array, the second one is shallow. 

Description : What’s the advantage of using System.Text.StringBuilder over System.String?

Last Answer : StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created.

Description : What’s the difference between System.String and System.Text.StringBuilder classes?

Last Answer : System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

Description : What’s the top .NET class that everything is derived from?

Last Answer : System.Object.

Description : What’s the difference between camel and pascal casing?

Last Answer : PascalCasing, camelCasing 

Description : What’s the difference between the Debug class and Trace class? 

Last Answer : Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.

Description : What’s the difference between // comments, /* */ comments and /// comments?

Last Answer : Single-line comments, multi-line comments, and XML documentation comments.

Description : What’s a multicast delegate?

Last Answer : A delegate that has multiple handlers assigned to it. Each assigned handler (method) is called. 

Description : What’s a delegate? 

Last Answer : A delegate object encapsulates a reference to a method. 

Description : What’s the implicit name of the parameter that gets passed into the set method/property of a class?

Last Answer : Value. The data type of the value parameter is defined by whatever data type the property is declared as.

Description : What’s an abstract class?

Last Answer : A class that cannot be instantiated. An abstract class is a class that must be inherited and have the methods overridden. An abstract class is essentially a blueprint for a class without any implementation.

Description : What’s the C# syntax to catch any possible exception?

Last Answer : A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.

Description : What’s the .NET collection class that allows an element to be accessed using a unique key?

Last Answer : HashTable.

Description : What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?

Last Answer : The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies the elements into another existing array. Both perform a ... create a new instance of each element's object, resulting in a different, yet identacle object.

Description : What’s the advantage of using System.Text.StringBuilder over System.String?

Last Answer : StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created. 

Description : What’s the difference between System.String and System.Text.StringBuilder classes?

Last Answer : System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

Description : What’s the top .NET class that everything is derived from? 

Last Answer : System.Object.

Description : What’s the difference between System.String and System.StringBuilder classes?

Last Answer : System.String is immutable, System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

Description : What’s an interface class? 

Last Answer : It’s an abstract class with public abstract methods all of which must be implemented in the inherited classes.

Description : What’s an abstract class? 

Last Answer : A class that cannot be instantiated. A concept in C++ known as pure virtual method. A class that must be inherited and have the methods over-ridden. Essentially, it’s a blueprint for a class without any implementation.

Description : What’s the top .NET class that everything is derived from?

Last Answer : System.Object.