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 is the output of: bool result = (5 > 3) && (3 < 2); Console.WriteLine(result);
Which of the following is NOT a value type in C#?
Which of the following correctly declares and initializes an array in C#?
Advertisement
What will be the result of: Console.WriteLine(310);
Which collection type in C# is best suited for key-value pair storage with unique keys?
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#?
In C#, what is the default access modifier for class members?
Which keyword is used to create a derived class in C#?
In C#, can a class inherit from multiple classes?
Which of the following correctly demonstrates an abstract class with an abstract method in C#?
Which access modifier allows a member to be accessed only within the same assembly?
What is the output of using 'nameof()' operator on a property in C#?
What happens when you mark a class with the 'sealed' modifier?
What does the 'base' keyword do in a derived class method in C#?
Which of the following demonstrates proper encapsulation in C#?
What is the output behavior of ToString() method when not overridden in a custom class?
In C#, which access modifier allows a member to be accessed only within the same class?