What is the correct way to check if a string is null or empty in modern C#?
Which of the following statements about properties in C# is TRUE?
What is the output of: decimal d = 10.5m; int x = (int)d; Console.WriteLine(x);
What happens when you try to access an array element beyond its length in C#?
Which of the following demonstrates proper use of string interpolation in C# 6.0+?
Advertisement
What is the difference between 'struct' and 'class' in C# regarding memory allocation?
What will be the output of the following code? int x = 5; int y = ++x; Console.WriteLine(x + " " + y);
Which of the following correctly describes method overloading in C#?
In C#, which keyword is used to create a constant variable that cannot be modified after initialization?
What is the default access modifier for a class member in C# if not specified?
Which namespace must be included to use LINQ in C#?
In C#, what is the correct syntax to declare a nullable integer?
What will be printed when the following code executes?
string str = "Hello";
str = str + " World";
Console.WriteLine(str.Length);
Which of the following correctly demonstrates the use of an out parameter in C#?
What is the output of: bool result = (5 > 3) && (10 < 8); Console.WriteLine(result);
Which collection type in C# automatically prevents duplicate values?
In C#, what is the difference between '==' and 'Equals()' when comparing strings?
What is the correct way to create a generic method in C#?
Which statement about anonymous functions in C# is TRUE?
What is the output of: var x = 5; Console.WriteLine(x.GetType().Name);