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

 

 

2009

Free-Response Questions: Annotated Solutions

The 2009 free-response questions are posted on The College Board's web site:

The x2009all.zip file contains complete Java classes for runnable projects with small test programs.

2009 AP* Computer Science A

A-1

In this question you have to find the longest run of repeating values in an array.

Solution and notes

A-2

This question deals with the GridWorld case study.  You have to write a subclass of Critter.

Solution and notes

A-3

In this question you have to add consecutive elements of an array with wraparound and find the smallest value among such sums.

Solution and notes

A-4

This question deals with an ArrayList.

Solution and notes



2009 AP Computer Science AB

AB-1

This question requires recursive handling of a binary tree.

Solution and notes

AB-2

This question deals with the GridWorld case study.  You have to write methods for a subclass of Critter using a java.util.Map<Location, Integer>.

Solution and notes

AB-3

This question asks you to write a class ArithmeticNumberStream, which helps to generate a sequence of numbers and implements a given interface.

Solution and notes

AB-4

This question deals with expanding sets of contacts among Persons.

Solution and notes

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