C# .NET Interview Questions and Answers
Here you can find C# .NET Interview Questions and Answers.
Why C# .NET Interview Questions and Answers Required?
In this C# .NET Interview Questions and Answers section you can learn and practice C# .NET Interview Questions and Answers to improve your skills in order to face
technical inerview by IT companies. By Practicing these interview questions, you can easily crack any C# .NET interview.
Where can I get C# .NET Interview Questions and Answers?
AllIndiaExams provides you lots C# .NET Interview Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students,
freshers can download C# .NET Interview Questions and Answers as PDF files and eBooks.
How to solve these C# .NET Interview Questions and Answers?
You no need to worry, we have given lots of C# .NET Interview Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the
C# .NET technical interview.
C# .NET Interview Questions and Answers
What is C#?
C# (pronounced "C sharp") is a simple, modern, object-oriented, and type-safe programming language.
It will immediately be familiar to C and C++ programmers.
C# combines the high productivity of Rapid Application Development (RAD) languages.
C# .NET Interview Questions and Answers
What are the types of comment in C#?
There are 3 types of comments in C#.
Single line (//)
Multi (/* */)
Page/XML Comments (///).
C# .NET Interview Questions and Answers
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;
C# .NET Interview Questions and Answers
What are the characteristics of C#?
There are several characteristics of C# are :
Simple
Type safe
Flexible
Object oriented
Compatible
Consistent
Interoperable
Modern
C# .NET Interview Questions and Answers
What are the different categories of inheritance?
Single inheritance : Contains one base class and one derived class.
Hierarchical inheritance : Contains one base class and multiple derived classes of the same base class.
Multilevel inheritance : Contains a class derived from a derived class.
Multiple inheritance : Contains several base classes and a derived class.
Hybrid inheritance : is nothing but a any combination of single,multiple and inheritance inheritance. Multiple inheritance class is not possible as it give assembly level error when we
use the same name for method. Multiple inheritance in interface is possible.
C# .NET Interview Questions and Answers
What are the basic concepts of object oriented programming?
It is necessary to understand some of the concepts used extensively in object oriented programming.These include
Objects
Classes
Data abstraction and encapsulation
Inheritance
Polymorphism
Message passing.
C# .NET Interview Questions and Answers
Can you inherit multiple interfaces?
Yes. Multiple interfaces may be inherited in C#.
C# .NET Interview Questions and Answers
What is inheritance?
Inheritance is deriving the new class from the already existing one.
C# .NET Interview Questions and Answers
Define scope?
Scope refers to the region of code in which a variable may be accessed.
C# .NET Interview Questions and Answers
What is the difference between public, static and void?
public :The keyword public is an access modifier that tells the C# compiler that the Main method is accessible by anyone.
static : The keyword static declares that the Main method is a global one and can be called without creating an instance of the class. The compiler stores the address of the
method as the entry point and uses this information to begin execution before any objects are created.
void : The keyword void is a type modifier that states that the Main method does not return any value.