Every year, two days after the AP Computer Science exam, College Board releases the free response questions. And every year computer science teachers around the country dig through the questions and come up with solutions of their own.
I'm a bit mixed on posting these. Having solutions publicly available means that students can find working solutions without doing the work. But, having solutions to look at also serves a function in learning. And since there are dozens of sites with working solutions already, I'm going to go ahead and post my solutions here. I've got solutions going back to 2004 when the AP test switched to Java, but they're not all here yet. As I type up explanations they'll show up here.
I'm not going to include any of the FRQs that covered Grid World or the Marine Biology case studies. Since they're no longer tested, it didn't make sense to include them here.
In CodeWordChecker you're building a class from scratch that implements an interface
Read more...The frog simulation FRQ on the 2018 AP CompSci exam tested your logic and algorithmic ability by checking if a frog can successfully hop their way to a goal.
Read more...The Digits FRQ has you working with an integer, an ArrayList filled with Integer objects, and making a determination on that ArrayList based on contents.
Read more...Study Practice has you working with a parent and subclass to build a class for practicing multiplication problems
Read more...In Successors you're working with a 2d-array of integers and an arbitrary class, Position
Read more...The Crossword Free Response question on the 2016 Computer Science AP-A exam had you working with a 2-d array of an arbitrary class.
Read more...LogMessage has you working with Strings and an ArrayList of a class called LogMessage.
Read more...The first free response question on the 2016 AP Computer Science exam, Random String Chooser, had you write a complete class that could be dropped into a bit of sample client code.
Read more...The String Formatter free response question from the 2016 AP CompSci exam asked you to implement code to format a string to a fixed width by adding spaces between words
Read more...Download Info has you implement a solution using an ArrayList of an arbitrary class
Read more...The GrayImage free response problem from the 2012 AP Computer Science exam has you working with a 2 dimensional array of integer values.
Read more...The Horse Barn FRQ has you working with a ArrayList of objects and interfaces
Read more...The PR2004 Robot Free Response question from the 2004 AP Computer Science exam has you working with an array of integer values.
Read more...The Pet FRQ from the 2004 AP Computer Science Exam tested that you can work with ArrayLists and understand how abstract classes work
Read more...On WordList you are working with an ArrayList of Strings and checking their lengths
Read more...