C# Programming - MCQ Practice Questions
C# (.NET) MCQs — OOP, collections, LINQ & exception handling.
290 questions | 100% Free
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#?
What will be the result of: Console.WriteLine();
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#?