Search Header Logo

AP CS - Unit 5 Review

Authored by Katherine Boward

Computers

9th - 12th Grade

Used 219+ times

AP CS - Unit 5 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is a mutator ?

An instance method that modifies the object’s internal state.

An instance method that provides information about the state of an object, without modifying it.

Code that interacts with another class or objects of that class.

The parent class in an inheritance relationship.

Hiding the implementation details of an object from the clients of the object, usually using the private keyword.

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

2. What is encapsulation ?

An instance method that modifies the object’s internal state.

An instance method that provides information about the state of an object, without modifying it.

Code that interacts with another class or objects of that class

The parent class in an inheritance relationship

Hiding the implementation details of an object from the clients of the object, usually using the private keyword.

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is an accessor ?

An instance method that modifies the object’s internal state.

An instance method that provides information about the state of an object, without modifying it.

Code that interacts with another class or objects of that class

The parent class in an inheritance relationship

Hiding the implementation details of an object from the clients of the object, usually using the private keyword.

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is a client (also called client code) ?

An instance method that modifies the object’s internal state.

An instance method that provides information about the state of an object, without modifying it.

Code that interacts with another class or objects of that class

The parent class in an inheritance relationship

Hiding the implementation details of an object from the clients of the object, usually using the private keyword.

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

true

false

x == y

x != y

(x <= y) && (x >= y)

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

7 8 8

0 8 8

0 0 8

0 0 0

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

I only

II only

III only

I and II

I, II, and III

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?