AP Computer Science A

The AP Computer Science A exam in 2027

3 hours: 42 multiple-choice questions in 90 minutes, then 4 free-response questions in 90.

Section I42 multiple-choice questions, 90 minutes, 55% of the score
Section II4 free-response questions, 90 minutes, 45% of the score
FormatFully digital, in Java, in the Bluebook app
DateWednesday, May 12, 2027, Session 2

Unit weights in Section I

  • 1 Using Objects and Methods: 15–25%
  • 2 Selection and Iteration: 25–35%
  • 3 Class Creation: 10–18%
  • 4 Data Collections: 30–40%

Try 2 questions

Question 1
Consider the following code segment.String out = ""; for (int i = 0; i < 10; i += 3) { out += i; } System.out.println(out);What is printed as a result of executing the code segment?
Question 2
Consider the following code segment.int[][] grid = new int[3][5]; grid[2][4] = 7; grid[1][0] = grid[2][4] + 1; System.out.println(grid.length + " " + grid[0].length + " " + grid[1][0]);What is printed as a result of executing the code segment?

FAQ

When is the AP Computer Science A exam in 2027?

Wednesday, May 12, 2027, Session 2.

Is inheritance on the AP Computer Science A exam?

Not since the course was revised for fall 2025. Designing inheritance is out; the four units are objects, selection and iteration, classes, and data collections.