Search Header Logo

Method Overloading and Overriding Quiz

Authored by DR MURTHY

Computers

12th Grade

Used 2+ times

Method Overloading and Overriding Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about method overloading?

Method overloading is based on different parameter lists.

Method overloading requires inheritance.

Method overloading requires overriding superclass methods.

Method overloading requires a final modifier.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In method overloading, which of the following must differ for methods with the same name?

Return type

Method name

Parameter list

Access modifier

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT true about method overriding?

Method overriding requires inheritance.

Overriding methods must have the same name and parameter list.

The access level of the overriding method can be more restrictive than the overridden method.

The return type of the overriding method must be compatible with the overridden method.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Method overriding is an example of which type of polymorphism?

Compile-time polymorphism

Runtime polymorphism

Static binding

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In method overloading, the return type of overloaded methods:

Must be the same.

Must be different.

Can be different but is not necessary.

Must be void.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following modifiers cannot be used in an overridden method in Java?

final

private

static

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In method overriding, the access level of the overriding method:

Must be the same as that of the overridden method.

Can be more restrictive than the overridden method.

Can be more accessible than the overridden method.

Does not matter.

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?