Search Header Logo

OOP Revision (Topic 6,7,8)

Authored by Tengku Hidayah

Computers

12th Grade

Used 2+ times

OOP Revision (Topic 6,7,8)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does polymorphism mean?

Having many forms

A method of data encapsulation

A way to create objects

A type of inheritance

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an abstract class?

A class that contains only static methods

A class that can be instantiated

A class that has no methods

A class that cannot be instantiated

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an abstract class?

To create instances directly

To provide a template for subclasses

To store data only

To implement all methods

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is method overriding?

Defining a method in a subclass with the same name as in the superclass

Changing the return type of a method

Using multiple methods in a class

Creating a new method in the superclass

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a concrete class?

A class that is used for inheritance only

A class that only contains abstract methods

A class that cannot have methods

A class that can be instantiated

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'instanceof' operator do?

Checks the type of an object

Creates a new instance of a class

Overrides a method

Declares a new class

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of polymorphism?

Easier to modify and extend programs

Faster execution of code

More memory usage

Less code to write

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?