Which of the following is a correct implementation of property with auto-backing field in C#?
In C#, what is the primary purpose of the 'using' statement?
What will be the result of: string text = null; Console.WriteLine(text ?? "Default");
Which of the following correctly demonstrates method overloading in C#?
What is the output of: int x = 10; int y = x++; Console.WriteLine(x + ", " + y);
Advertisement
In C#, which keyword is used to declare a variable that cannot be changed after initialization?
What is the default access modifier for a class member in C# if not explicitly specified?
Which statement correctly describes value types in C#?
What will be the output of the following code? int a = 5; int b = ++a; Console.WriteLine(a + " " + b);
Which of the following correctly demonstrates string interpolation in C# 6.0 and above?
In C#, what is the difference between 'struct' and 'class'?
Which method is used to convert a string to an integer in C#?
What is the output of: bool result = (5 > 3) && (3 < 2); Console.WriteLine(result);
Which of the following is a nullable type in C#?
In C#, what does the 'params' keyword allow you to do?
What will be the output of: string s1 = "Hello"; string s2 = "Hello"; Console.WriteLine(s1 == s2);
Which collection type in C# maintains insertion order and allows duplicate elements?
What is the purpose of the 'abstract' keyword in C#?
In C#, which keyword is used to implement multiple interface inheritance?
What will be the output of: decimal price = 19.99m; Console.WriteLine(price.GetType().Name);