AP Computer Science A

AP Computer Science A free-response questions: the four types

Four questions, one of each type, worth 25 points and 45% of the exam score.

Questions4, one of each type
Points7, 7, 5 and 6 (25 in all)
Time90 minutes for all four
Weight45% of the exam score

What each type asks

  • Methods and Control Structures, 7 points: two methods, the second using String methods.
  • Class Design, 7 points: a whole class from a table of example calls.
  • Data Analysis with ArrayList, 5 points: one method over a list.
  • 2D Array, 6 points: one method over a grid.

Earning each point

  • Use the headers and methods you are given.
  • Return the result; printing it earns nothing.
  • Check loop bounds and removal while traversing.

Try 2 questions

Question 1
Consider the following method.public int bonus(int points) { if (points > 50) { return 10; } }Which of the following best describes the method?
Question 2
Consider the following method.public static int mystery(int[][] t) { int best = 0; int bestSum = Integer.MIN_VALUE; for (int r = 0; r < t.length; r++) { int s = 0; for (int v : t[r]) { s += v; } if (s > bestSum) { bestSum = s; best = r; } } return best; }Which of the following best describes the value returned by mystery?

FAQ

Are AP Computer Science A free-response answers typed?

Yes. The exam is fully digital: you type your code in the Bluebook app.