OOP 4 Polymorphism

OOP 4 Polymorphism

11th Grade

10 Qs

quiz-placeholder

Similar activities

Java Inheritance Quiz

Java Inheritance Quiz

11th Grade

10 Qs

Creating Java Programs

Creating Java Programs

10th - 12th Grade

14 Qs

Komputer

Komputer

1st Grade - University

11 Qs

PBO 1 - 20 Juli 2020

PBO 1 - 20 Juli 2020

11th Grade

6 Qs

Java Class vocabulary

Java Class vocabulary

9th Grade - University

12 Qs

Programming

Programming

11th Grade

13 Qs

INTRODUCTION TO OOP TECHNIQUE

INTRODUCTION TO OOP TECHNIQUE

11th - 12th Grade

15 Qs

39. OCR A Level (H446) SLR7 – 1.2 Object-oriented languages part

39. OCR A Level (H446) SLR7 – 1.2 Object-oriented languages part

11th Grade

15 Qs

OOP 4 Polymorphism

OOP 4 Polymorphism

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Amanda Beacham

Used 7+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many main types of polymorphism are there in object-oriented programming?

One

Two

Three

Four

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is static polymorphism?

Implementing multiple methods with the same name but different parameters

Using the same method name for different classes

Overloading operators

Inheriting methods from a superclass

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a characteristic of static polymorphism?

Methods must have the same parameters.

Methods must have different names.

Methods can have different numbers of parameters.

Methods must be in different classes.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the class described in the document?

Animal

Bird

Dog

Cat

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What sound does the makeSound() method produce in the Bird class?

Bark

Meow

Chirp

Roar

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the makeSound() method in the Bird class?

To print "Quack"

To print "Chirp"

To print "Tweet"

To print "Honk"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class inherits from the Bird class?

Eagle

Sparrow

Duck

Penguin

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?