
About this book
Ordering Info
Order now
Java Methods AP Edition
Java Methods Test Package
250 MC Questions in Java
Links
Workshops
Solutions: other years
Be Prepared home page
Skylight's home page
|
|
2018
Free-Response Questions: Annotated Solutions
The free-response questions and grading guidelines for this exam
are posted on apstudent.collegeboard.org and, for teachers, on AP Central:
The x2018all.zip file contains complete Java classes
for runnable projects with small test programs.
2018 AP* Computer Science A
A-1
|
In this question you simulate a frog attempting to reach the goal while not exceeding the given maximum number of "hops."
Tests the use of "ifs," loops, and method calls.
Solution and notes
|
A-2
|
In this question you write a constructor and a method for a class that represents a list of pairs of words.
Solution and notes
|
A-3
|
In this question you write a class with two constructors and a method that checks whether the length of a string
falls within given limits and the string does not contain a specified substring.
Solution and notes
|
A-4
|
In this question you have to test whether a two-dimensional array
of integers represents a "Latin Square."
Solution and notes
|
|