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 .
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
28 Responses to C# Interview Questions and Answers
« INTERVIEW QUESTIONS OF UES C++ Aptitude Questions and Answers with PDF »
BCA
JOB
sdfsd
sdfsd
sdfsd
Computer science lecture interview questions and ans
How to prepair .net
NOTHING
C#.net question for interview
C#
C#
interview question
interview question
interview question
interview question
interview question
interview question
interview question
interview question
interview question
interview question
fully c# and .net interview question and answers pdf
i have small doubts on state management in asp.net
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
create table employee (eno int, enmame varchar(20),salary money)