Total Questions : 30
Expected Time : 30 Minutes

1. What is the primary benefit of using the 'async' and 'await' keywords in C#?

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

3. What is 'method overloading' in C#?

4. What does C# stand for?

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

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

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

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

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

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

11. Which of the following is a reference type in C#?

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

13. What is 'dependency injection' in C#?

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

15. What is the default access modifier for class members in C# if no access modifier is specified?

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

17. In C#, how do you declare a constant variable?

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

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

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

21. What is 'serialization' in C#?

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

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

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

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

26. What is the difference between 'ref' and 'out' parameters in C#?

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

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

29. What is 'polymorphism' in C#?

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