About this book
Ordering Info
Order now
Java Methods AP Edition
Java Methods Test Package
250 MC Questions in Java
AP Links
AP Summer Institutes
Be Prepared home
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 String s.
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
|
|