C# Interview Questions and Answers

Aug 31 • Placement • 31281 Views • 28 Comments on C# Interview Questions and Answers

C# is an elegant and type-safe object-oriented language that enables developers to build a variety of secure and robust applications that run on the .NET Framework. C# can be used to create traditional Windows client applications, distributed components, different applications and many more. C# became the most vital subjects or programming language for freshers. Their are lots of opportunity in C#. We have provided the important C# interview questions and answers asked during several interview and we have also attached the pdf . 


Interview Questions on C#

1. What is C# ?

C# (pronounced “C sharp”) is a simple, modern, object-oriented, and type-safe programming language used with XML-based Web services on the .NET platform and designed for improving productivity in the development of Web applications. It will immediately be familiar to C and C++ programmers.

2. What are the types of comment in C#?

There are 3 different types of comments in C#.

        • 1. Single Line Comment : The single line comment is specified using the symbol “//”
          Eg: // this is a AbundantCode comment
        • 2. Multi Line Comment :The Multiline comment can be specified using the symbol “/* */”
          Eg: /* This is a test comment */
        • 3. XML Comment:This is a special kind of comment which is generally used for API documentation. The symbol /// is used to specify the XML comment in C#

3. What are the namespaces used in C#.NET?

Namespace is a logical grouping of class.
using System;
using System.Collections.Generic;
using System.Windows.Forms;

4. What are the characteristics of C#?

Characteristics of C# :

        • Consistent
        • Modern
        • Object Oriented
        • Type Safe
        • Versionable
        • Flexible

5. What are the different categories of inheritance?

In C# inheritance may be implemented in four categories :

    • Single Inheritance
    • Multilevel Inheritance
    • Multiple Inheritance
    • Hierarchical Inheritance

6. What are the basic concepts of object oriented programming?

The concepts used extensively in object oriented programming are :

  • Objects
  • Classes
  • Data abstraction and encapsulation
  • Inheritance
  • Polymorphism
  • Dynamic Binding
  • Message passing.

7. Can you inherit multiple interfaces?

Yes. Multiple interfaces may be inherited in C#.

8. What is a base class?

A base class is a class that is used to create, or derive other classes. Classes derived from a base class are called child classes, subclasses or derived classes. A base class does not inherit from any other class and is considered parent of a derived class.

9. What are the different types of statements supported in C#?

C# supports several different kinds of statements are

  • Block statements
  • Declaration statements
  • Expression statements
  • Selection statements
  • Iteration statements
  • Jump statements
  • Try catch statements
  • Checked and unchecked

10. What are the different types of Caching?

There are three types of Caching :

  • Output Caching
  • Fragment Caching
  • Data Caching

Related Links : 

1. C Interview Questions
2. C++ Interview Questions

 Download   Interview Questions and Answers on C#.pdf

Tell us Your Queries, Suggestions and Feedback

Your email address will not be published.

28 Responses to C# Interview Questions and Answers

  1. sathyapriya says:


  2. Pramod Kumar says:


  3. Rakesh Tati says:


  4. Rakesh Tati says:


  5. Rakesh Tati says:


  6. Lakshmi says:

    Computer science lecture interview questions and ans

  7. shravanthi says:

    How to prepair .net

  8. vikas S G says:


  9. vikas S G says:
  10. Komal says:

    C#.net question for interview

  11. Komal says:
  12. Anonymous says:
  13. helen says:


  14. helen says:


  15. Amit kumar gupta says:

    interview question

  16. Amit kumar gupta says:

    interview question

  17. Amit kumar gupta says:

    interview question

  18. Amit kumar gupta says:

    interview question

  19. Amit kumar gupta says:

    interview question

  20. Amit kumar gupta says:

    interview question

  21. Amit kumar gupta says:

    interview question

  22. Amit kumar gupta says:

    interview question

  23. Amit kumar gupta says:

    interview question

  24. Amit kumar gupta says:

    interview question

  25. veershetty says:

    fully c# and .net interview question and answers pdf

  26. Vamsi Krishna Tupili says:

    i have small doubts on state management in asp.net

  27. Pravin Mote says:

    Dear HR,

    This is in response to your advertisement for the position of “.NET Developer”.

    I am Pravin Baliram Mote, very interested to make a good career with your esteemed organization.

    Below are my brief details for your consideration. My detailed resume can be found as attachment.

    Qualification: MCA with 65.25 %

    1.8 Year Experience in Dot Net .

    .Net Course: ASP.NET, C#.NET, WCF, WPF, MVC, MySql, SQL SERVER.

    .Net Certifications: MICROSOFT.NET

    Proficient in : ASP.NET, C#.NET, SQL SERVER.

    Current Location : Pune

    * Relevant Experience in Dot Net :- ASP.NET, C#.NET, WCF, WPF, MVC, MySql, SQL SERVER, CSS, JavaScrit, BootStrap, AngularJS.

    * Current Salary (CTC): 1.8 LPA

    * Expected Salary (CTC): 2+ LPA

    * Notice Period: 15 Days

    *Reason of Job Change: This opportunity is a logical next step for in my career. This opportunity is very interesting to me, and fits very well with the direction I want to take mycareer.

    Please consider my application for any suitable in .Net Development.

    Thanks & Regards,
    Pravin Mote

    Mobile: (+91) 8888781552 / 9420822690
    Email: pravin.b.mote@gmail.com

  28. vikram venkatesh says:

    create table employee (eno int, enmame varchar(20),salary money)

« »