C#.Net Interview Question and Answers
1.
|
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.
|
2.
|
What are the types of comment in C#?
|
There are 3 types of comments in C#.
§ Single line (//)
§ Multi (/* */)
§ Page/XML Comments (///).
|
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#?
|
There are several characteristics of C# are :
§ Simple § Type safe § Flexible § Object oriented § Compatible § Consistent § Interoperable § Modern |
5.
|
What are the different categories of inheritance?
|
Inheritance in Object Oriented Programming is of four types:
| |
6.
|
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
|
7.
|
Can you inherit multiple interfaces?
|
Yes. Multiple interfaces may be inherited in C#.
|
8.
|
What is inheritance?
|
Inheritance is deriving the new class from the already existing one.
|
9.
|
Define scope?
|
Scope refers to the region of code in which a variable may be accessed.
|
10.
|
What is the difference between public, static and void?
|
|
No comments:
Post a Comment