Colgate University Computer Science Department

Advanced Placement Computer Science **
Unofficial Web Page



Home

APCS Exam Review

College Board

Java Materials

Exam Questions

Workshops

C++ Materials

Free Response Solutions from AP CS exams.

These solutions use namespace std. In order to not use namespace, replace all the includes for iostream and fstream with the iostream.h and fstream.h versions. These solutions are set up for my system which has apclasses in the systems search path. Consequently, you may need to change the include directives for your system. Working code for each solution in given in the appropriate subdirectory. Some solutions have alternate code commented out -- these alternate versions have also been tested and should work. This code was written by Chris Nevison, May, 2000, and May, 2001.

Information on the AP CS exams, including the exam questions themselves, can be accessed at APCentral with the following links. You may need to be logged in to APCentral to acces these links.

A exam information

AB exam information


2004 Exam

A exam

A1 WordList

A2 Pet Parade

A3 PondStocker

A4 Robot

AB Exam

AB1 Library

AB2 Approval Voting

AB3 PredatorFish

AB4 Binary Search Tree Priority Queue


2003 Exam

A exam

A1 CollegeGroup

A2 Retirement

A3 Treasures

A1 Fish and Algae

AB Exam

AB1 Retirement with Claimants

AB2 Filing Cabinet

AB3 Fish in Trees

AB4 StringTokenizer Design


 

2002 Exam

A exam

A1 DataAnalysis.cpp , data.txt

A2  GroceryItem.h , GroceryItem.cpp , GroceryStore.h , GroceryStore.cpp , GroceryTest.cpp , inventory.txt , prices.txt

A3   fish.h , fish.cpp , position.h , position.cpp

A4  Passenger.h , Passenger.cpp , Seat.h , Seat.cpp , Flight.h , Flight.cpp , TestFlight.cpp , flight1.txt , groups.txt

AB Exam

AB1  Passenger.h , Passenger.cpp , Seat.h , Seat.cpp , Flight.h , Flight.cpp , TestFlight.cpp , flight1.txt , groups.txt

AB2  Card.h , Card.cpp , Deck.h , Deck.cpp , CardGame.cpp , randgen.h , randgen.cpp

AB3  environ.h , environ.cpp

AB4  CodeTree.h , CodeTree.cpp , CodeTreeTest.cpp


2001 Exam

A exam

A1 GasStation.cpp , PumpStation.h , PumpStation.cpp , randgen.h , randgen.cpp

A2  BookList.h , BookList.cpp , books.cpp , books1.txt , books2.txt

A3  environ.h , environ.cpp , fish.h , fish.cpp , simulate.cpp , fish.dat

A4  window.h , window.cpp , wintest1.cpp , wintest2.cpp , win1.txt , win2.txt

AB Exam

AB1  window.h , window.cpp , wintest1.cpp , wintest2.cpp , win1.txt , win2.txt

AB2  environ.h , environ.cpp , fish.h , fish.cpp , simulate.cpp , fish.dat

AB3  radix.cpp , list1.txt , list2.txt

AB4  binheap.cpp , heap1.txt , heap2.txt , heap3.txt
 


2000 Exam

A exam

A1  mode.cpp

A2  powertest.cpp , bigint.h , bigint.cpp

A3  wordcollection.h , wordcollection.cpp , A3solution.cpp , words.txt

A4  encryptor.h , encryptor.cpp , A4AB1solutiontest.cpp , code.txt , pairs.txt , words.txt
 
 

AB Exam

AB1  encryptor.h , encryptor.cpp , A4AB1solutiontest.cpp , code.txt , pairs.txt , words.txt

AB2  inpost.cpp , exp1.txt

AB3  bigint.hbigint.cpp , testdata.cpp , data.txt

AB4  advice.cpp , movietree.txt