C# Coding Interview Questions (Part – 5)


C# Coding Interview Questions (Part – 5)


1. What happens when you compile and run the below program?


Output:

me to CsharpStar !!

2. Predict the output for below program.


Output:

DEBUG is defined

3. What will be the output for below program?


Output:

True
true

4. Predict the output for below Program


Output:

True

5. What will be the output for below program?


Output:

System.NullReferenceException:C

6. Predict the output for below Program.


Output:

Compiletime Error.Index out of range which arises only when index is non negative or less than the collection of size

7. What will be the output for below program?


Output:

Compile time error.‘y’ is defined privately which cannot be accessed outside its scope.

8. Predict the Output for below program


Output:

Compiled successfully

9. What will be the output for below program?


Output:

H M

10. Predict the output for below program?


Output:

false True

Post a Comment

0 Comments