Objects: Instances of Classes FRQ Practice

Responses receive AI feedback against a rubric after submission. Scores are practice estimates.

Question 1 of 5

A museum uses class ExhibitCase. One constructed object is named lobbyCase and currently holds 14 artifacts.

(a) Explain the role of class ExhibitCase. (b) Explain what lobbyCase is. (c) Explain whether a second ExhibitCase object could hold a different artifact count.

Question 2 of 5

A textbook diagram lists Object at the top, then Instrument, then Piano as a more specific Instrument. Students are not asked to write Java inheritance.

(a) Identify the root of this conceptual hierarchy. (b) Explain what it means that a Piano is conceptually an Instrument. (c) State whether AP CSA topic 1.12 requires students to implement that hierarchy.

Question 3 of 5

The table describes two distinct weather buoys that already exist.

Reference Class waveHeight
gulfBuoy WeatherBuoy 2
bayBuoy WeatherBuoy 5

(a) Do the two references name objects of the same class? (b) If only gulfBuoy’s waveHeight is changed to 4, what happens to bayBuoy’s waveHeight? (c) Explain why.

Question 4 of 5

Trace these declarations. Locker(String id) constructs a locker with that id.

Locker left = new Locker("A3");
Locker right = left;
Locker extra = new Locker("B9");

(a) Which variables currently refer to the same object? (b) After extra = right; what object does extra refer to? (c) Did constructing extra originally change the id of left’s object?

Question 5 of 5

A soil lab declares references as follows.

Sensor probe = null;
probe = new Sensor(21);
Sensor copy = probe;

(a) What reference value does probe hold before new Sensor(21) runs? (b) After the three statements, do probe and copy refer to one object or two? (c) Explain the difference between declaring a Sensor reference and constructing a Sensor object.