
Method Overloading and Overriding Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
DR MURTHY
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
OOP Java

Quiz
•
12th Grade
15 questions
1.2.4 Types of Programming Language

Quiz
•
12th Grade
16 questions
C# Operator Overloading

Quiz
•
12th Grade
20 questions
Java Knowledge Check

Quiz
•
12th Grade
18 questions
Konfigurasi NAT

Quiz
•
12th Grade
22 questions
NV: Java Interface Quiz

Quiz
•
12th Grade
15 questions
Unit 2 Inheritance in Java

Quiz
•
12th Grade - University
15 questions
002_Java Methods

Quiz
•
12th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade