Polymorphism

Polymorphism

University

15 Qs

quiz-placeholder

Similar activities

Quiz #2 (Refer to Javatpoint in answering these question)

Quiz #2 (Refer to Javatpoint in answering these question)

University

13 Qs

UML-2020-158225-Week8-Class and Method Design-NTY

UML-2020-158225-Week8-Class and Method Design-NTY

University

10 Qs

Inheritance in Java

Inheritance in Java

University

20 Qs

Pemograman Berorientasi Objek (POB)

Pemograman Berorientasi Objek (POB)

University

20 Qs

CSC305: TOPIC 6

CSC305: TOPIC 6

University

15 Qs

Object Oriented Programming Quizizz

Object Oriented Programming Quizizz

10th Grade - University

11 Qs

OO Programming OCR A level

OO Programming OCR A level

10th Grade - University

20 Qs

Quiz 1 PBO

Quiz 1 PBO

University

20 Qs

Polymorphism

Polymorphism

Assessment

Quiz

Computers

University

Medium

Created by

Zuraihah Ngadengon

Used 233+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the name Polymorphism translate to?

Many forms

Many changes

two forms

liquid forms

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are the two types of Polymorphism?

Syntax and runtime

Constructor and method

derive and base

encapsulation and Inheritance

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Polymorphism is features of object oriented programming?

True

False

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What will be the output of this program?

drawing...

drawing rectangle...

drawing circle...

drawing triangle...

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Is the code above an example of overloading or overriding a method?

Overloading

Overriding

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

In the code above, If I write the following statement will it execute successfully.


Rectangle rec= new Triangle();

Yes, there is nothing wrong with this method of polymorphism.

No, Rectangle and Triangle are subclasses of Shape and cannot cast to each other.

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Class SalariedEmployee extends Employee.  Which of these is true?
SalariedEmployee is the subclass
Employee is the base class
SalariedEmployee inherits from Employee
all of these

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?