Ap Computer Science A Course Overview PDF
Ap Computer Science A Course Overview PDF
Section II: F
ree Response | 4 Questions | 1 Hour, 30 Minutes |
50% of Exam Score
(a) Use one class, Car, with three instance variables: int numDoors, boolean hasAir, and milesPerGallon.
(b) Use four unrelated classes: Car, Doors, AirConditioning, and MilesPerGallon.
(c) Use a class Car with three subclasses: Doors, AirConditioning, and MilesPerGallon.
(d) Use a class Car, with a subclass Doors, with a subclass AirConditioning, with a subclass MilesPerGallon.
(e) Use three classes: Doors, AirConditioning, and MilesPerGallon, each with a subclass Car.
Correct Answer: A
Educators: apcentral.collegeboard.org/apcompscia
Students: apstudent.collegeboard.org/apcompscia