iGET

C# Programming - MCQ Practice Questions

C# (.NET) MCQs — OOP, collections, LINQ & exception handling.

290 questions | 100% Free

Q.21Easy

Which of the following is NOT a pillar of OOP in C#?

Q.22Easy

In C#, what is the primary purpose of using an interface?

Q.23Easy

Which statement is TRUE about abstract methods in C#?

Q.24Easy

Consider a payment processing system where PaymentProcessor is an abstract class with an abstract method ProcessPayment(). CreditCardProcessor and UPIProcessor are derived classes. What will happen if you try to instantiate PaymentProcessor directly in C#?