AP CSA Unit Review #2

AP CSA Unit Review #2

9th Grade

5 Qs

quiz-placeholder

Similar activities

E-book

E-book

9th Grade

10 Qs

ซอฟต์แวร์ประยุกต์

ซอฟต์แวร์ประยุกต์

8th - 12th Grade

10 Qs

Wstęp do programowania

Wstęp do programowania

9th - 12th Grade

10 Qs

Java Inheritance

Java Inheritance

11th Grade - University

10 Qs

MIL Module 2 (Pre-Test)

MIL Module 2 (Pre-Test)

11th - 12th Grade

10 Qs

Access Section 1.2

Access Section 1.2

9th - 12th Grade

10 Qs

SKD E-Book

SKD E-Book

10th Grade

10 Qs

Computer Security:Encryption

Computer Security:Encryption

10th Grade - University

10 Qs

AP CSA Unit Review #2

AP CSA Unit Review #2

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

ANTHONY MEDINA

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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