OOP Concepts Quiz

OOP Concepts Quiz

1st Grade

28 Qs

quiz-placeholder

Similar activities

ASK INTRO

ASK INTRO

1st - 2nd Grade

23 Qs

LA2 BAH 1

LA2 BAH 1

KG - 5th Grade

27 Qs

pemrograman dasar

pemrograman dasar

1st Grade

25 Qs

JNA - VGSA

JNA - VGSA

1st - 5th Grade

30 Qs

UH-2_DTKJT

UH-2_DTKJT

1st Grade

25 Qs

unity

unity

1st - 5th Grade

26 Qs

Test-Driven Development and Behaviour-Driven Development Quiz

Test-Driven Development and Behaviour-Driven Development Quiz

1st Grade

30 Qs

Quiz PSBO Pertemuan 1-3

Quiz PSBO Pertemuan 1-3

1st Grade

26 Qs

OOP Concepts Quiz

OOP Concepts Quiz

Assessment

Quiz

Computers

1st Grade

Medium

Created by

Adham Elmuntser

Used 1+ times

FREE Resource

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which OOP characteristic is exemplified by a BankAccount class hiding its balance attribute?

Inheritance

Polymorphism

Encapsulation

Abstraction

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of the Singleton Pattern?

To allow a class to inherit from another class

To ensure only one instance of a class exists

To bridge between incompatible interfaces

To define workflows or algorithms

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an OOP context, what does the Adapter Pattern do?

Ensures only one instance of a class exists

Acts as a bridge between incompatible interfaces

Allows methods to perform differently based on input context

Focuses on object creation mechanisms

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pattern allows multiple objects to listen and react to changes in a subject?

Singleton Pattern

Adapter Pattern

Observer Pattern

Creational Pattern

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does inheritance promote code reuse in OOP?

By creating multiple instances of a class

By allowing a new class to use the properties and methods of an existing class

By defining a class with no methods

By using interfaces to define methods

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an instantiation of a class called in OOP?

Method

Object

Attribute

Pattern

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of polymorphism?

Hiding complex implementation details

A class deriving from another class

Methods performing differently based on the object

Creating reusable code through standard structures

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?