.Net Basic Interview Questions and Answers - 2

Question: 6

What is called positional parameters?

Positional parameters are passed in through the constructor and must be passed in the order declared in the constructor.

Question: 7

How the custom attributes are created?

Specific custom attributes can be created by defining an attribute class, a class that derives directly or indirectly from System.Attribute.

Question: 8

What is the use of the activator class?

The system.activator class is the key to .NET late binding. It contains four static methods to create objects locally or remotely.

Create Com Instance From – To create instances of COM objects.

Create Instance From – To create a reference to an object from a particular assembly and type name.

Get Object – For Marshalling objects purpose.

Create Instance – To create local or remote instances of an object.

Question: 9

What is called metadata?

Metadata is information about the data – that is information about the types, code, and assembly.

Question: 10

What are attributes?

It is a mechanism for adding Metadata, such as compiler instructions and other data about the data, methods and class. Attributes are inserted into the Metadata and are visible through ILDASM and other Metadata reading tools. It uses the class System.Attribute.

Related Questions