O  About this book

 O  Ordering Info

 O  Order now

 O  Java Methods AP Edition

 O  Java Methods Test Package

 O  250 MC Questions in Java

 O  Links

 O  Workshops

 O  Solutions: other years

 O  Be Prepared home page

 O  Skylight's home page




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


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


In this question you write a constructor and a method for a class that represents a list of pairs of words.

Solution and notes


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


In this question you have to test whether a two-dimensional array of integers represents a "Latin Square."

Solution and notes

Copyright © 2018 by Skylight Publishing

* AP and the Advanced Placement Program are registered trademarks of the College Entrance Examination Board,
which was not involved in the production of this web site.