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  AP Links

 O  AP Summer Institutes

 O  Be Prepared home

 O  Skylight's home

 

 

2004

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

A-1

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

Solution and notes

A-2

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

Solution and notes

A-3

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

Solution and notes

A-4

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

Solution and notes



2004 AP Computer Science AB

AB-1

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

AB-2

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

Solution and notes

AB-3

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

AB-4

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

Solution and notes

Copyright © 2004 by Skylight Publishing
support@skylit.com

* 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.