AP Computer Science A (AP CSA) FRQ Studio
Practice released FRQs in FRQ Studio.
Students write Java responses in the browser, choose released FRQs by year, save drafts locally, run rule-based self-checks, and reveal solution outlines only after attempting.
2025 AP Computer Science A FRQ 1
DogWalker
Write two methods for a dog walker. The first chooses how many dogs to walk for one hour using company helper methods. The second runs an inclusive shift, calculates pay per dog, and adds the correct bonus.
Recommended time
22 minutes
Difficulty
Medium-hard
Self-check coverage
0 / 8
Open the official prompt before writing. This page intentionally summarizes the task and provides practice support instead of reproducing the full College Board prompt.
Open Official PromptWhat to write
- Part A: decide how many dogs can be walked during one hour, update the company, and return the number walked.
- Part B: loop from startHour through endHour, call walkDogs for each hour, calculate base pay, add any earned bonus, and return total pay.
Starter shape
public int walkDogs(int hour)
{
// Write part (a) here.
}
public int dogWalkShift(int startHour, int endHour)
{
// Write part (b) here.
}Common traps
- Looping with hour < endHour instead of hour <= endHour.
- Calculating pay from available dogs instead of the number returned by walkDogs.
- Forgetting to call updateDogs in the one-hour method.
- Adding the bonus only when both conditions are true instead of when either condition is true.
Your response
Cleared when this page reloads. 24 words.
Rule-based feedback
This checks for common structural signals. It is not official scoring.
