Free Response Solutions

We’re working on getting working solutions to all of the AP Computer Science FRQs online. We’ll be working backwords starting with the 2018 exam back through 2004, the first year that the AP exam was given in Java. But it does take some time. We’ll be putting new solutions online as we get them ready. Thanks for your patience.

2018

FrogSimulation Implement two related methods to simulate a frog hopping towards a goal
WordPair Create an ArrayList from an array of Strings and count how many match
CodeWordChecker Create a class from scratch implmenting an interface
ArrayTester Work with 1-d and 2-d integer arrays
Download PDF

2017

Digits Process an integer, filling an ArrayList with the individual digits.
MultPractice Implement an interface.
Phrase Analyze and modify a String.
Successors Iterate through a primitive matrix and fill an object matrix with objects and an arbitrary class.
Download PDF

2016

RandomStringChooser Build a pseudo iterator that pulls a random string out of an array.
LogMessage Parse a string into two parts, separated by a colon.
Crossword Determine which empty cells in a crossword puzzle need to be labeled.
StringFormatter Pad a string to a specified length by inserting spaces in between each word.
Download PDF