Professional Documents
Culture Documents
1. What is C#?
C# is pronounced "C-Sharp". It is an object-oriented programming language created by
Microsoft that runs on the .NET Framework.
2. Which company developed the .NET software
Microsoft
3. What is the main function of CLR (Common Language Runtime)
Convert the managed code into native code and then execute the code.
4. What does MSIL (MicroSoft Intermediate Language) consist of
Consists of CPU and platform-independent set of instructions, which can be easily converted
to native code
5. Can multiple catch blocks be executed?
No, you cannot execute multiple catch blocks of the same type.
6. What is an object?
An object is a class instance that can be used to access class methods. The "new" keyword can
be used to construct an object.
7. What are Jagged Arrays?
A jagged array is an array whose elements are arrays, possibly of different sizes. A jagged
array is also called an "array of arrays."
8. Define Constructors.
A constructor is a member function with the same name as its class. The constructor is
automatically invoked when an object is created. While the class is being initialized, it
constructs all the values of data members.
9. Differentiate between Break and Continue Statement.
Continue statement - Used in jumping over a particular iteration and getting into the next
iteration of the loop.
Break statement - Used to skip the next statements of the current iteration and come out of the
loop.
10. What are the different types of commenting in C#
• /// example of XML comment
• // example of single-line comment
• /* example of a
multiline
comment */
11. Explain the four steps involved in the C# code compilation.
• Source code compilation in managed code.
• Newly created code is clubbed with assembly code.
• The Common Language Runtime (CLR) is loaded.
• Assembly execution is done through CLR.