
Inheritance and Interfaces Quiz
Authored by Elizzette Mationg
Information Technology (IT)
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to establish inheritance between classes?
implements
extends
super
inherits
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of inheritance, what does a subclass acquire from a superclass?
Only constructors
Both behaviors and attributes
Only attributes
Only methods
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the relationship called when Class B inherits from Class A?
Has-A relationship
Is-A relationship
Can-Do relationship
Uses-A relationship
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a superclass?
Car
Fish
Tilapia
Earth
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'super' keyword do in a subclass?
Defines a new method
Calls a method from the superclass
Inherits attributes
Creates a new object
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is method overriding?
Deleting a method from the subclass
Using the same method name in both superclass and subclass
Changing the name of a method
Creating a new method in the superclass
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about interfaces?
They define a contract for classes to implement
They can contain method implementations
They can be instantiated directly
They can only have one method
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
ICT BEL 4
Quiz
•
4th Grade - University
15 questions
CodeHS Principles of Computing 6.8.1 The Internet Quiz
Quiz
•
9th - 12th Grade
10 questions
Exploring AI in Our World
Quiz
•
5th Grade - University
10 questions
Materi Berpikir Komputasional
Quiz
•
9th Grade - University
15 questions
Table,Image formatting
Quiz
•
5th Grade - University
10 questions
REVIEW TIME
Quiz
•
9th Grade - University
10 questions
AP CK CyberSecurity Unit 3
Quiz
•
12th Grade
15 questions
Hardware
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
15 questions
Atomic Habits: Career Habits
Lesson
•
9th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade
15 questions
Exponential Growth and Decay Word Problems Practice
Quiz
•
9th - 12th Grade
18 questions
AP Bio Insta-Review Topic 6.1*: DNA & RNA Structure
Quiz
•
9th - 12th Grade