CodeHS 4.12 Inheritance
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Aaron Pavao
Used 8+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we like to use classes?
They let us save the state and behavior of objects
It's good to be classy
So we can encapsulate each program in a separate class
Because it's easier to learn
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a hierarchy?
Any group of objects ranked so that every one but the topmost is subordinate to a specified one above it
A level or rank in an organization
The bourgeoisie
The person or organization in charge
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword do we use to create a class based on another class?
extends
subclass
superclass
super
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When class Bar is based on class Foo, what do we call Bar?
subclass
superclass
extends
super
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When class Bar is based on class Foo, what do we call Foo?
subclass
superclass
extends
super
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It is possible to create a class that isn't based on any other class.
true
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does it mean to override a superclass method?
A method in the subclass has the same signature as one in the superclass, and the subclass method is used
A method in the subclass has the same signature as one in the superclass, and the superclass method is used
An instance variable in the subclass has the same signature as one in the superclass, and the subclass instance variable is used
A instance variable in the subclass has the same signature as one in the superclass, and the superclass instance variable is used
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
Mid semester kelas XI RPL Konsep pemodelan berorientasi objek
Quiz
•
11th Grade
10 questions
Internal Hardware: CPU
Quiz
•
9th Grade
10 questions
HT3.2- Validation and Reliability
Quiz
•
8th Grade - University
10 questions
Kuis CSS Dasar (1) - TKJ/RPL
Quiz
•
10th Grade
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
11 questions
ICT - Networks and communication
Quiz
•
9th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th Grade
10 questions
Intro to Windows Server 2012
Quiz
•
12th Grade
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
