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

General Questions

  • What’s the base .NET class that everything is derived from?
  • Does C# support multiple-inheritance?
  • 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?

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s