KyaPoocha.com

Huge Collection of Interview Questions


‘C# Interview Questions’ - KyaPoocha.com

What is the use of fixed statement? 

The fixed statement sets a pointer to a managed variable and “pins” that variable during the execution of statement. Without fixed, pointers to managed... Read more »

What is the order of destructors called in a polymorphism hierarchy? 

Destructors are called in reverse order of constructors. First destructor of most derived class is called followed by its parent’s destructor and so on till... Read more »

How can you sort the elements of the array in descending order? 

int[] arr = new int[3]; arr[0] = 4; arr[1] = 1; arr[2] = 5; Array.Sort(arr); Array.Reverse(arr);  Read more »

Is it possible to Override Private Virtual methods. 

No, First of all you cannot declare a method as ‘private virtual’.  Read more »

Is it possible to debug the classes written in other .Net languages in a C# project. 

It is definitely possible to debug other .Net languages code in a C# project. As everyone knows .net can combine code written in several .net languages into one... Read more »

What is the difference between shadow and override? 

Overriding is used to redefines only the methods, but shadowing redefines the entire element.  Read more »

What is the syntax to inherit from a class in C#? 

Place a colon and then the name of the base class. Example: class NewClassName : BaseClassName  Read more »

Describe the accessibility modifier “protected internal”. 

It is available to classes that are within the same assembly and derived from the specified base class.  Read more »

What is a satellite Assembly? 

An assembly containing localized resources for another assembly.  Read more »

How to declares a two-dimensional array in C#? 

Syntax for Two Dimensional Array in C Sharp is int[,] ArrayName;  Read more »

What does it meant to say “the canonical” form of XML? 

The purpose of Canonical XML is to define a standard format for an XML document. Canonical XML is a very strict XML syntax, which lets documents in canonical XML... Read more »

What are Delegates? 

Delegates are just like function pointers in C++, except that they are much safer to use due to their type safety. A delegate defines a function without implementing... Read more »

What is C#? 

C# ( pronounced as C-sharp ) is a new Java like language from Microsoft. Microsoft says that C# is a language with the power of C++ and simplicity of Visual Basic.... Read more »

What is the difference between Java and .NET garbage collectors? 

Sun left the implementation of a specific garbage collector up to the JRE developer, so their performance varies widely, depending on whose JRE you’re using. Microsoft... Read more »

Why do one get a syntax error when trying to declare a variable called checked? 

Syntax Error is thrown because the word checked is a keyword in C#.  Read more »

Page 5 of 11« First...«34567»...Last »