Search Header Logo

OOP Concepts Quiz

Authored by Irish Dajero

Information Technology (IT)

University

Used 1+ times

OOP Concepts Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A hospital system has classes Doctor, Nurse, and Staff. They all inherit from the class Employee. What OOP concept is applied?

Encapsulation

Abstraction

Polymorphism

Inheritance

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A method named PaySalary() responds differently depending on whether an object is of type FullTimeEmployee or PartTimeEmployee. This is an example of:

Abstraction

Inheritance

Polymorphism

Encapsulation

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A programmer makes fields private and uses get and set methods. Which OOP pillar is shown?

Inheritance

Encapsulation

Polymorphism

Abstraction

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The process of hiding complex systems and showing only essential features is called:

Abstraction

Encapsulation

Polymorphism

Overriding

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In C#, class Car : Vehicle means:

Encapsulation

Inheritance

Polymorphism

Abstraction

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The ability for the same method Draw() to behave differently in Circle, Rectangle, and Triangle subclasses demonstrates:

Encapsulation

Inheritance

Abstraction

Polymorphism

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

An ATM machine only showing user functions like Withdraw and Deposit is…

Encapsulation

Inheritance

Polymorphism

Abstraction

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?