C# Interview Question and Answers
1. |
What is .NET? |
|
- .NET technology is a third generation component model.
- It uses intermediate language called Microsoft Intermediate Language (MSIL) simply IL to perform interoperability.
|
|
|
2. |
Define C#? |
|
- C# (pronounced as 'C sharp') is a new programming language developed by Microsoft Corporation, USA.
-
It is an Object oriented and web enabled Programming language. It has been designed to support the key features of .NET framework.
|
|
|
3. |
List out the characteristics of C#? |
|
- Simple
- Object oriented
- Consistent
- Type safe
- Modern
- Versionable
- Compatible
- Interoperable
- Flexible
|
|
|
4. |
What is the difference between C++ and C#? |
|
- C# does not produce object codes.
- No semicolon at the end of class definition
- The first character of the Main () is capitalized.
- C# does not support # include.
- C# has two types called Value and Reference.
- C# does not support pointer (handles by unsafe).
- Arrays are declared differently.
- C# does not allow Fall through in Switch case.
- C# supports foreach statement.
- C# does not support default arguments.
- Type casting in C# is safer than C++.
- C# does not support multiple code inheritance.
|
|
|
5. |
List out the .NET Languages. |
|
- C# C++ Visual Basic Jscript
-
COBOL Eiffel Perl Python Small talk Mercury Scheme
|
|
|