Consider the following code segment. What is the name of the superclass?
AP CSA Unit Review #2

Quiz
•
Computers
•
9th Grade
•
Medium
ANTHONY MEDINA
Used 8+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Lion
turnRight()
AnimalKingdom
SuperLion
Zoo
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank. Inheritance represents a/an _______ relationship.
has-a
has-many
is-a
is-many
none of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement below is true regarding the class declarations?
I. Drinks is a subclass of GingerAle
II. Soda is a superclass of GingerAle
III. GingerAle is a subclass of Soda
IV. GingerAle is a superclass of Drinks
I only
III only
I and II
II and IV
II and III
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the most number of times that the turnLeft( ) method would be called
0
2
3
4
infinite
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following Book and AudioBook classes. The following code segment occurs in a class other than Book or AudioBook.
Book mack = new Book( );
Which of the following code segments, written in the same class, would not run?
mack.getTitle( )
mack.getAuthor( )
mack.getNumPages( )
mack.read( )
mack.getNarrator( )
Similar Resources on Quizizz
10 questions
OOP 4 Polymorphism

Quiz
•
11th Grade
10 questions
AP CSA - Inheritance, plus one while loop.

Quiz
•
12th Grade
7 questions
CodeHS 4.12 Inheritance

Quiz
•
9th - 12th Grade
5 questions
Java Inheritance

Quiz
•
9th - 12th Grade
8 questions
Unit 9 Quiz 1 Review

Quiz
•
9th - 12th Grade
10 questions
Inheritance

Quiz
•
10th Grade
10 questions
Excel

Quiz
•
10th - 11th Grade
10 questions
Java OOPs Concepts

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University