AP CSA Unit Review #2

AP CSA Unit Review #2

9th Grade

5 Qs

quiz-placeholder

Similar activities

Review activity Fernandes & Do

Review activity Fernandes & Do

9th - 12th Grade

10 Qs

APCSA Inheritance

APCSA Inheritance

10th - 12th Grade

5 Qs

APCSA Inheritance, Superclass, Subclass

APCSA Inheritance, Superclass, Subclass

10th - 12th Grade

5 Qs

Arrays

Arrays

10th - 12th Grade

10 Qs

Java Quiz

Java Quiz

11th Grade

5 Qs

Module 2 - Implementing Inheritance

Module 2 - Implementing Inheritance

11th Grade

10 Qs

disney pixar cars

disney pixar cars

10th Grade

10 Qs

CodeHS 4.14 Polymorphism

CodeHS 4.14 Polymorphism

9th - 12th Grade

10 Qs

AP CSA Unit Review #2

AP CSA Unit Review #2

Assessment

Quiz

Computers

9th Grade

Medium

Created by

ANTHONY MEDINA

Used 8+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Consider the following code segment. What is the name of the superclass?

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

Media Image

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

Media Image

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

Media Image

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( )