C# Interview Questions – Level 1 (1 – 3 Yrs)

General Questions

  • What’s the base .NET class that everything is derived from?
  • What is a Constructor? What is a Destructor?
  • Does C# support multiple-inheritance?
  • How to achieve polymorphism in C#?
  • What’s the default access modifier of a class?
  • What’s the default access modifier of the members of a class?
  • What are the access modifiers in C#?
  • What is boxing and unboxing?
  • What is the difference between const and read-only variables?
  • What is the difference between ref and out keywords?
  • How can you prevent your class from being inherited by another class?
  • What is the difference between a Struct and a Class?
  • What is the difference between Value type and Reference type?
  • What is a sealed class in C#?
  • What is meant by method overloading?
  • What is meant by method overriding?
  • What is the difference between method overriding and method overloading?
  • Can you override private virtual methods?
  • What’s the use of “virtual” keyword?
  • What’s the meaning of “protected internal” access modifier?
  • What’s the C# syntax to catch any possible exception?
  • Explain the use of virtual, sealed, override, and abstract
  • What is an Exception in .NET? How do we handle exception?
  • What are Custom Exceptions? Why do we need them?
  • Can private virtual methods be overridden in C#.NET?
  • What is the significance of the keyword virtual in the method definition?
  • How can you allow class to be inherited and prevent the method from being over-ridden?
  • What are the ways to deploy an assembly?
  • Explain how to sort the elements of the array in descending order

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s