All quizzes
Free quiz · 50 questions in the bank

OOP quiz

Test your OOP knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is the difference between a static method and an instance method?

Questions in this quiz
  1. What is the difference between a static method and an instance method?
  2. A `BankAccount` class exposes `balance` as a public mutable field, so any code can write `account.balance = -1_000_000`. Which OOP pillar is being broken?
  3. Which best describes "encapsulation"?
  4. What is an abstract class?
  5. Which best describes "polymorphism"?
  6. What is method overloading?
  7. What is an interface (in languages like Java, C#, TypeScript)?
  8. Which problem is inheritance most naturally suited to solve?
  9. What does `this` (or `self` in Python) refer to inside an instance method?
  10. What is the difference between a class and an object?
  11. In `class B extends A { ... }`, calling `new B()` runs which constructor(s)?
  12. Which best describes "abstraction"?
Gaps to close?
Read the curated OOP notes — core concepts, patterns, interview prep.
OOP notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web