🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Inheritance: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Which type of inheritance does Java NOT allow with classes?
  2. Q2. What does this print? (code)
  3. Q3. Inheritance represents which relationship?
  4. Q4. How does Python decide which parent method to use in multiple inheritance?
  5. Q5. "A Car has an Engine" is modelled best with:
  6. Q6. What does super().init(brand, 2) do in a Python child class?
  7. Q7. What does this print? (code)
  8. Q8. class Manager(Employee) and class Intern(Employee) — which type of inheritance is this?
  9. Q9. In Java, two interfaces both provide a default method start(), and a class implements both. What must the class do?
  10. Q10. Why are deep inheritance chains (5 or more levels) a problem?