C#.Net Interview Questions

 
1.
What is C#?
2.
What are the types of comment in C# with examples?
3.
Can multiple catch blocks be executed?
4.
What is the difference between public, static and void?
5.
What is an object?
6.
Define Constructors?
7.
What is Jagged Arrays?
8.
What is the difference between ref & out parameters?
9.
What is the use of using statement in C#?
10.
What is serialization?
11.
Can "this" be used within a static method?
12.
What is difference between constants and read-only?
13.
What is an interface class?
14.
What are value types and reference types?
15.
What are Custom Control and User Control?
16.
What are sealed classes in C#?
17.
What is method overloading?
18.
What is the difference between Array and Arraylist?
19.
Can a private virtual method be overridden?
20.
Describe the accessibility modifier "protected internal".
21.
What are the differences between System.String and System.Text.StringBuilder classes?
22.
What's the difference between the System.Array.CopyTo() and System.Array.Clone() ?
23.
How can we sort the elements of the array in descending order?
24.
Write down the C# syntax to catch exception?
25.
What's the difference between an interface and abstract class?
26.
What is the difference between Finalize() and Dispose() methods?
27.
What are circular references?
28.
What are generics in C#.NET?
29.
What is an object pool in .NET?
30.
List down the commonly used types of exceptions in .Net?
31.
What are Custom Exceptions?
32.
What are delegates?
33.
How do you inherit a class into other class in C#?
34.
What is the base class in .net from which all the classes are derived from?
35.
What is the difference between method overriding and method overloading?
36.
What are the different ways a method can be overloaded?
37.
Why can't you specify the accessibility modifier for methods inside the interface?
38.
How can we set class to be inherited, but prevent the method from being over-ridden?
39.
What happens if the inherited interfaces have conflicting method names?
40.
What is the difference between a Struct and a Class?
41.
How to use nullable types in .Net?
42.
How we can create an array with non-default values?
43.
What is difference between is and as operators in c#?
44.
What's a multicast delegate?
45.
What are indexers in C# .NET?
46.
What is difference between the "throw" and "throw ex" in .NET?
47.
What are C# attributes and its significance?
48.
How to implement singleton design pattern in C#?
49.
What is the difference between directcast and ctype?
50.
Is C# code is managed or unmanaged code?