Total Questions : 40
Expected Time : 40 Minutes

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

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

3. What is 'LINQ' in C#?

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

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

6. What is 'generics' in C#?

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

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

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

10. What keyword is used to define a method that does not return any value in C#?

11. What is a 'delegate' in C#?

12. What is the primary purpose of the 'using' statement in C#?

13. How do you define a static method in a C# class?

14. In C#, which type of loop is best suited for iterating over arrays and collections?

15. Which C# keyword is used to exit a loop prematurely?

16. Which C# operator is used to perform logical AND between two Boolean values?

17. What is the C# operator for multiplication?

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

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

20. What is 'polymorphism' in C#?

21. What is the C# syntax for a switch statement?

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

23. What is the syntax for a single-line comment in C#?

24. In C#, what is the purpose of the 'StringBuilder' class?

25. What is the purpose of the 'this' keyword in C#?

26. In C#, what keyword is used to create an instance of a class?

27. How do you declare a variable in C#?

28. What does C# stand for?

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

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

31. Which C# keyword is used to exit a method without returning a value?

32. What is the purpose of the 'base' keyword in C#?

33. Which C# data type is used to store a single character?

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

35. What is the C# operator for logical AND?

36. What is 'reflection' in C#?

37. What is the purpose of the 'break' statement in a switch statement in C#?

38. Which C# data type is used to store decimal numbers with high precision?

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

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