C# Common Interview Questions

C#

Q: What do you understand by C#?
A: C# is a one of Dot Net programming language and supports functional, generic, object-oriented, and component-oriented programming disciplines. C# was interested by Microsoft on June 2000 and is updating new features with different versions regularly.
The latest version is C# 5.0.

Q: What are the different types of C# used to create a csharp program?
A: Basically C# compiler supplies intrinsic data types (int, double, string etc) and programmers can define user defined data types (class, struct, enum etc). C# are one of the following types,

  • Value types
  • Reference types

Q: Demonstrate the different C# types. 
A: C# are one of the following types,

  • Value Type: Variables of value types directly contain their data and value types store in stack.
  • Reference Type: Variables of reference types store references to their data. Reference types store in Heap Memory.

Q: What are the three important Object Oriented programming features supported by C #?

  • Encapsulation
  • Inheritance
  • Polymorphism

Q: Can we apply inheritance to structure type in C#?
A: No, inheritance cannot be applied to structure as structure types are always sealed.

Q: What are the main features involved in C#2.0 Version?
A: C# Generics and Iterators are some of the features introduced in C# 2.0 version which helped in the process of C# collections. Some of the common features are,

  • Partial Classes
  • Anonymous Methods
  • Nullable Types
  • Co-varience and Contra Varience in Delegates

Q: Explain the features included in C#4.0 version.
A: C# 4.0 mainly focused on dynamic programming and contains following features.

  • Dynamic Binding
  • Name and optional Arguments
  • Improvements in CoVarience and ContraVarience
  • COM specific interop features
Share this post

3 Comments. Leave new

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.

SQL Server Common Interview Questions
Java Common Interview Questions

Get industry recognized certification – Contact us

Categories

keyboard_arrow_up