Java Inheritance
Quiz
•
Computers
•
11th Grade
•
Easy
Richard Groeneveld
Used 10+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Which OOP features where one class inherits all the properties and behaviors of another class?
Polymorphism
Inheritance
Abstraction
Encapsulation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What do you call a class that inherits the properties of another class?
superclass
subsetclass
subclass
relativeclass
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Which of these keywords must be used to inherit a class?
super
this
void
extends
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is method overriding in Java?
Changing the value of a method's parameters in the subclass.
Providing a specific implementation of a method that is already provided by its superclass.
Removing a method from the superclass in the subclass.
Calling a method from the superclass in the subclass.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to call a superclass method from a subclass in Java?
super.methodName();
this.methodName();
superclass.methodName();
methodName();
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a rule for method overriding in Java?
The argument list must exactly match that of the overridden method.
The return type must be the same or a subtype of the return type declared in the original overridden method.
A method declared final cannot be overridden.
The overriding method must always be static if the overridden method is static.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the `@Override` annotation is used with a method that does not override a superclass method?
The program will compile without any errors.
The program will throw a runtime exception.
The compiler will generate an error.
The method will be ignored during execution.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Assessment 08
Quiz
•
University
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
11 questions
Chapter 6 Part 2 - 4
Quiz
•
11th - 12th Grade
11 questions
Video Watermaking
Quiz
•
University
13 questions
bts
Quiz
•
KG - Professional Dev...
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
10 questions
Microcontroller
Quiz
•
11th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
13 questions
Halloween Movie Trivia
Quiz
•
9th - 12th Grade
7 questions
Halloween - Myths & Legends
Interactive video
•
10th - 12th Grade
