Set - 3

Question 21 :

Explain manifest & metadata?

Answer :

Answer1
Manifest is metadata about assemblies. Metadata is machine-readable information about a resource, or ""data about data." In .NET, metadata includes type definitions, version information, external assembly references, and other standardized information. 

Answer2
Manifest: Manifest describes assembly itself. Assembly Name, version number, culture, strong name, list of all files, Type references, and referenced assemblies.
Metadata: Metadata describes contents in an assembly classes, interfaces, enums, structs, etc., and their containing namespaces, the name of each type, its visibility/scope, its base class, the nterfaces it implemented, its methods and their scope, and each method's parameters, type's properties, and so on.


Question 22 :

Difference between imperative and interrogative code?

Answer :

There are imperative and interrogative functions. Imperative functions are the one which return a value while the interrogative functions do not return a value.


Question 23 :

Difference between value and reference type. what are value types and reference types?

Answer :

Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort
Value types are stored in the Stack
Reference type - class, delegate, interface, object, string
Reference types are stored in the Heap


Question 24 :

What are the two kinds of properties?

Answer :

Two types of properties in .Net: Get and Set


Question 25 :

Explain constructor?

Answer :

Constructor is a method in the class which has the same name as the class (in VB.Net its New()). It initializes the member attributes whenever an instance of the class is created.