OOP Revision (Topic 6,7,8)

OOP Revision (Topic 6,7,8)

12th Grade

30 Qs

quiz-placeholder

Similar activities

IP Address & Subnet Pre-Pickle

IP Address & Subnet Pre-Pickle

11th - 12th Grade

25 Qs

Simple Machines

Simple Machines

KG - University

25 Qs

Priority Queues and Heapsort

Priority Queues and Heapsort

9th - 12th Grade

27 Qs

OCR H446 -term 1

OCR H446 -term 1

12th Grade - University

25 Qs

Java Programming Quizz-GX

Java Programming Quizz-GX

9th - 12th Grade

25 Qs

General Programming Terms

General Programming Terms

10th - 12th Grade

33 Qs

Java Classes/Objects Quizziz 1

Java Classes/Objects Quizziz 1

12th Grade

26 Qs

OOP Revision (Topic 6,7,8)

OOP Revision (Topic 6,7,8)

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Tengku Hidayah

Used 1+ times

FREE Resource

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

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?