CodeHS 4.12 Inheritance

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Aaron Pavao
Used 8+ times
FREE Resource
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
Similar Resources on Wayground
5 questions
Enkapsulasi Quiz

Quiz
•
10th Grade
5 questions
TG5

Quiz
•
1st - 12th Grade
10 questions
Computer Lab Rules

Quiz
•
5th - 11th Grade
10 questions
Variables and Data Types

Quiz
•
10th - 12th Grade
6 questions
Java Polymorphism Quiz

Quiz
•
12th Grade
8 questions
CAI710 - Inheritance

Quiz
•
12th Grade
5 questions
الوراثة-1

Quiz
•
12th Grade
5 questions
inheritance quiz

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade