Total Questions : 30
Expected Time : 30 Minutes

1. Which keyword is used to define a class in C#?

2. What is the purpose of the 'using' directive in a C# program?

3. What is 'asynchronous programming' in C#?

4. What is 'boxing' and 'unboxing' in C#?

5. Which C# keyword is used to handle exceptions?

6. In C#, what keyword is used to define a constant?

7. Which C# keyword is used to define an enumeration?

8. What does C# stand for?

9. What is the purpose of the 'interface' keyword in C#?

10. What is the purpose of 'extension methods' in C#?

11. What is the default access modifier for class members in C#?

12. Which C# keyword is used to indicate that a class cannot be inherited from?

13. What is the purpose of the 'try', 'catch', and 'finally' blocks in C#?

14. How do you define a property in a C# class?

15. What is the purpose of the 'using' statement in C# when working with resources like files or database connections?

16. How do you define a constructor in a C# class?

17. Which C# keyword is used to indicate that a method can be overridden in a derived class?

18. How do you define a constant value in C#?

19. Which C# keyword is used to define a new instance of a class?

20. What is the C# syntax for creating a new instance of a class?

21. What is 'tuple' in C#?

22. Which C# data type is used to represent a single character?

23. What is the C# operator for equality?

24. Which C# data type is used to represent true or false values?

25. What is the purpose of the 'foreach' loop in C#?

26. What is the entry point of a C# program?

27. What is 'nullable types' in C#?

28. What is the purpose of the 'finally' block in a try-catch-finally statement?

29. What is the purpose of the 'using' directive in C#?

30. What is the difference between 'sealed' and 'abstract' classes in C#?