2024年5月5日发(作者:)

®

© 2019 The College Board. College Board, Advanced Placement, AP, AP Central, and the acorn logo are

registered trademarks of the College Board. Visit the College Board on the web: .

AP Central is the official online home for the AP Program: .

2019 AP

®

COMPUTER SCIENCE A FREE-RESPONSE QUESTIONS

COMPUTER SCIENCE A

SECTION II

Time — 1 hour and 30 minutes

Number of questions —4

Percent of total score —50

Directions: SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE

WRITTEN IN JAVA.

Notes:

• Assume that the interface and classes listed in the Java Quick Reference have been imported where appropriate.

• Unless otherwise noted in the question, assume that parameters in method calls are not null and that methods

are called only when their preconditions are satisfied.

• In writing solutions for each question, you may use any of the accessible methods that are listed in classes

defined in that question. Writing significant amounts of code that can be replaced by a call to one of these

methods will not receive full credit.

© 2019 The College Board.

Visit the College Board on the web: .

GO ON TO THE NEXT PAGE.

-2-