Which of the following best describes LINQ in C#?
What is the main purpose of the 'finally' block in C#?
Which of the following is NOT a value type in C#?
What is the output of: int x = 10; int y = x++; Console.WriteLine(x + " " + y);
Which of the following correctly declares and initializes an array in C#?
Advertisement
Which keyword is used to create a constant variable in C# that cannot be changed?
What will be the result of: Console.WriteLine(310);
Which of the following is true about the 'var' keyword in C#?
What is the output of: char ch = 'A'; Console.WriteLine((int)ch);
Which statement about method overloading in C# is correct?
Which of the following correctly demonstrates the ternary operator in C#?
In C# 2024, what is the latest feature for null-safety introduced in recent versions?
What is the output of: string s = "Hello"; Console.WriteLine(s.GetHashCode() == s.GetHashCode());
Which collection type in C# is best suited for key-value pair storage with unique keys?
Which of the following statements about ref and out parameters in C# is correct?
What will be the behavior of the following code snippet?
string str = null;
string result = str?.ToUpper() ?? "DEFAULT";
Console.WriteLine(result);
In C# 2024, which feature allows you to use pattern matching to deconstruct objects and filter simultaneously in a single expression?
What is the difference between 'is' and '==' operators when comparing object references in C#?
Consider this code: int[] arr = new int[5]; foreach(var item in arr) { Console.Write(item + " "); } What is the output?
Which of the following is a correct way to declare a property with auto-implementation in C#?