Q1: Which keyword is used to define a class in C#?
Q2: What is the default access modifier for class members in C#?
Q3: Which of these is the correct syntax to write a main method in C#?
Q4: Which C# keyword is used to inherit a class?
Q5: Which of the following is used to handle exceptions in C#?
Q6: Which type represents a true/false value in C#?
Q7: Which keyword is used to define a constant in C#?
Q8: Which of these is NOT a value type in C#?
Q9: Which access modifier allows access within the same assembly?
Q10: Which symbol is used for single-line comments in C#?
Q11: Which keyword is used to declare an abstract class in C#?
Q12: Which method is automatically called when an object is destroyed?
Q13: Which class is the base of all classes in C#?
Q14: What is boxing in C#?
Q15: Which keyword is used to create a new object?
Q16: Which statement is used to jump out of a loop?
Q17: Which collection stores key-value pairs?
Q18: What is the output of Console.WriteLine(3 + "3");
Q19: Which keyword makes a method not overridable?
Q20: What is the output of Console.WriteLine(true && false);
Q21: What is the base type of all exceptions in C#?
Q22: Which of the following is NOT a loop in C#?
Q23: What is the size of int in C#?
Q24: What is the extension for C# source files?
Q25: Which of the following allows multiple methods with the same name?
Q26: What is the purpose of 'using' directive in C#?
Q27: Which of the following is true about interfaces in C#?
Q28: Which access modifier allows access to derived classes only?
Q29: Which type can store null in C#?
Q30: Which class is used for console input/output in C#?
Q31: What is the purpose of 'static' keyword?
Q32: What is LINQ?
Q33: What does 'ref' keyword do?
Q34: What is a delegate in C#?
Q35: What is the purpose of 'readonly' in C#?
Q36: Which keyword is used to handle an exception after try?
Q37: Which keyword throws an exception in C#?
Q38: Which operator is used to check equality in C#?
Q39: What is the return type of Main() method in C#?
Q40: Which keyword is used to define an interface?
Q41: What is inheritance in C#?
Q42: Which symbol is used for multiline comments in C#?
Q43: What is the output type of Console.ReadLine()?
Q44: Which type is used for large text in C#?
Q45: Which of the following is NOT a value type?
Q46: Which method is called to clean up unmanaged resources?
Q47: Which of the following is a reference type?
Q48: Which operator is used for conditional logic in C#?
Q49: Which tool compiles C# code?
Q50: Which keyword is used to define a constant in C#?