.NET Framework Interview Questions and Answers (547) - Page 9

Hashtable with the key and the value strongly typed to be strings rather than objects is with class,

NOTE: This is objective type question, Please click question title for correct answer.
ColorPalette Class provided colors are…

NOTE: This is objective type question, Please click question title for correct answer.
ColorMatrix Class is…

NOTE: This is objective type question, Please click question title for correct answer.
ColorMode specifies…

NOTE: This is objective type question, Please click question title for correct answer.
Scan0 is used to…

NOTE: This is objective type question, Please click question title for correct answer.
ColorChannelFlag Enumeration is in…

NOTE: This is objective type question, Please click question title for correct answer.
With which class you can compare types of images ? With which property ?

NOTE: This is objective type question, Please click question title for correct answer.
Base interface to know all contracts used for communication between auto updated components is…

NOTE: This is objective type question, Please click question title for correct answer.
This represents a symbol binder for managed code…

NOTE: This is objective type question, Please click question title for correct answer.
With which enum you can know whether a calendar is solar-based, lunar-based, or lunisolar-based…

NOTE: This is objective type question, Please click question title for correct answer.
This class defines the period of daylight saving time…

NOTE: This is objective type question, Please click question title for correct answer.
Web.config info get stored in...

NOTE: This is objective type question, Please click question title for correct answer.
Culture-specific display of digit(number)s can be achieved with...

NOTE: This is objective type question, Please click question title for correct answer.
Which method is used to serialize an object into an XML document from Xmlserializer class?

The "Serialize" method is the first step of serialize process and used to create an XML document
can we assign Null value to Struct variable.

No , We cannot assign null to a struct variable, since structs are value type.
What is the difference between a Struct and a Class?

Structs are Value type variables and are stored on the stack, while Class are Reference type variables and are stored on the heap.
Struct do not support inheritance, while class supports inheritance. However struct can implements interface.
Struct should be used when you want to use a small data structure, while Class is better choice for complex data structure.
What does the term immutable mean?

In object-oriented and functional programming, an immutable object is an object whose state cannot be modified after it is created.
The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory. Ex: String.
Making an object immutable is usually inappropriate if the object contains a large amount of changeable data.
So, For this reason .NET has the System.Text.StringBuilder class which is Mutable and appropriate for large amount of changeable data.
Can you store multiple data types in System.Array?

No, If the System.Array is of Some Particular Data Type.(Primitive Data Type)

yes, If the System.Array is of Object Type.

Ex :

create an array of objects.

int in = 50;
string st = "Fifty";

object [] obj = new object[2];
obj[0] = in;
obj[1] = st;
What exactly a Constructor is doing ?

Constructor Creates as well as Initialized the objects.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories