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 2004 free-response questions are posted on The College Board's web site:

The x2004all.zip file contains complete Java classes for runnable projects with small test programs.  Several MBS and College Board classes must be added to run A-3, AB-3, and AB-4. 

2004 AP* Computer Science A


In this question you have to handle an ArrayList of Strings.

Solution and notes


This question involves a small hierarchy of classes, calling constructors and methods of the superclass, and traversing an ArrayList.

Solution and notes


This question is a Marine Biology Simulation case study question.  It involves counting and adding fish in a bounded environment.

Solution and notes


This question involves a simple algorithm for moving a "robot" along a one-dimensional array.

Solution and notes

2004 AP Computer Science AB


In this question you have to design a small application: define an interface, extend a given class, and find big-O for certain operations on a data structure of your choice (a Map).

Solution and notes


This question involves working with a Map, a List, and a Set.

Solution and notes


This question is a Marine Biology Simulation case study question.  You have to design a PredatorFish class and implement a couple of methods for it.

Solution and notes


This question involves a priority queue implemented as a binary search tree with TreeNode nodes.

Solution and notes

Copyright © 2004 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.