.NET FAQs Unleashed!
 

C# Interview Questions

Describe the accessibility modifier "protected internal"
Can multiple data types be stored in System.Array?
How to sort array elements in descending order?
Whats the use of "throw" keyword?
Can we put multiple catch blocks in a single try statement?
How to achieve polymorphism in C#?
How to achieve inheritance in C#?
Compare Session state and Viewstate?
How to add gridview/datagrid columns manually? Autogenerate?
How to add a ReadOnly property in C#?
How to prevent a class from being inherited? Sealed?
How to inherit the class, but not the method inside it?
Can we inherit multiple interfaces?
What are the different ways a method can be overloaded?
How to call a specific base constructor?
What are generics in C#?
What is the use of the main() function in C#?
Are C# Keywords in lowercase or uppercase?
What is the use of Console.Readline() in C#?
Can we set the specifier of the main() method in C# as private?
Can we set different types of parameters & return-types in main() method
What is the use of GetCommandLineArgs() method
What is the use of System.Environment class?
Why is the new keyword used for instantiating an object in .NET?
Default values of bool, int, double, string, char, reference-types?
Why does the compiler throw an error when variables are declared with initial value?
How to declare a constant variable in C#?
In C#, can we create an object of reference type using const keyword
What is the difference between const and readonly in C#?
What are the different parameter modifiers available in C#
What is the difference between out and ref in C#?