Search Header Logo

AP CSA Unit Review #2

Authored by ANTHONY MEDINA

Computers

9th Grade

Used 8+ times

AP CSA Unit Review #2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?