
Inheritance in Object-Oriented Programming

Quiz
•
Other
•
University
•
Medium
Justine Nichol Pasamonte
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
A software development team wants to reuse code across different vehicle types such as Car, Bus, and Motorcycle. They all share features like move() and brake() from a Vehicle class. Which inheritance type should they implement to maximize code reuse?
Single Inheritance
Multilevel Inheritance
Hierarchical Inheritance
Multiple Inheritance
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
A developer has a base class Employee and a derived class Manager. They need to access a private member salary of Employee from Manager. Which of the following should they implement?
Directly call the private variable using object reference
Redefine salary in the derived class
Use a getter function defined in the base class
Make the derived class static
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
You are working on a student management system. The base class is Person, and the derived classes are Teacher and Student. Which inheritance type best fits this design?
Hybrid Inheritance
Multiple Inheritance
Hierarchical Inheritance
Multilevel Inheritance
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
In a hybrid inheritance setup, you encounter ambiguity accessing a function from the common base class through two different base classes. Which issue are you facing?
Access Violation Error
Segmentation Fault
Diamond Problem
Type Casting Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
A developer uses private inheritance for a class Logger inherited by Application. What is the access level of the public members of Logger inside Application?
Public
Protected
Private
Inaccessible
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
A company has a class structure where CEO inherits from Manager, and Manager inherits from Employee. Which type of inheritance does this represent?
Single
Multiple
Multilevel
Hierarchical
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
A base class Shape has a method draw(). Two derived classes Circle and Square override this method. What OOP concept does this illustrate?
Abstraction
Tight Coupling
Polymorphism
Hybrid Inheritance
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Java programming

Quiz
•
University
20 questions
Quiz-A-Thon

Quiz
•
University
13 questions
Java Programming Quiz

Quiz
•
University
20 questions
GENE MUTATION

Quiz
•
1st Grade - University
17 questions
Access

Quiz
•
University
15 questions
Quiz on Arrays, Inheritance, and Interfaces in Java

Quiz
•
University
10 questions
Education

Quiz
•
University
10 questions
C++ set 3

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Other
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University