AP Computer Science A

What the AP Computer Science A exam covers, how it's scored, the Java topics it's built on, and how to practice your way to a 5.

AP Computer Science A: a subject-specific STEM tableau or data visualization where the actual concept is visible

AP Computer Science A is a college-level introductory programming course and exam taught in Java, covering object-oriented programming, control structures, classes, arrays, ArrayLists, 2D arrays, inheritance and recursion. The exam runs 3 hours: 40 multiple-choice questions (90 minutes) and 4 free-response questions (90 minutes) where you write Java code by hand, scored from 1 to 5. It's taken in May, and a 3 or higher is the common passing line — confirm your target college's credit policy.

1–5The AP score scale; a 3 is the common "passing" line.
40 + 440 multiple-choice and 4 free-response questions.
3 hours90 minutes each section.
JavaYou write real Java code on the free-response.
What's on it

Two sections, all in Java

The exam splits its weight between multiple choice and free response, and every question is grounded in Java programming.

Section I — Multiple choice

40 questions, 90 minutes.

Discrete questions that ask you to trace code, predict output and reason about Java behavior — control flow, objects, arrays and recursion. Worth about half your score.

Section II — Free response

4 questions, 90 minutes.

You hand-write Java code — typically methods working with classes, arrays, ArrayLists and 2D arrays. Correct logic, syntax and use of given classes all count toward the other half of your score.

Scoring

One 1–5 score.

The two sections combine into a single 1–5. A 3 is "qualified"; a 4 or 5 is strong. Credit and placement policies are set by each college — confirm yours.

Practice it, topic by topic.

Reading about Java isn't the same as answering AP-style questions and learning from every miss. Start free and practice by topic.

Start free
The Java topics

What AP Computer Science A covers

  • Primitive types and using objects
  • Boolean expressions, conditionals and iteration
  • Writing classes — methods, constructors and encapsulation
  • Strings and the Math and String library methods
  • Arrays and ArrayLists
  • 2D arrays
  • Inheritance and polymorphism
  • Recursion

How to study for AP Computer Science A

  • Write code by hand — the free-response is handwritten, so practice that way.
  • Drill tracing: predict the exact output of a snippet before running it.
  • Master arrays, ArrayLists and 2D arrays — they anchor the free-response.
  • Learn the Java Quick Reference so you lean on the right library methods.
  • Sit timed sets to build pace across both sections.
FAQ

AP Computer Science A questions

What's on the AP Computer Science A exam?
Two sections in 3 hours. Section I is 40 multiple-choice questions (90 minutes). Section II is 4 free-response questions (90 minutes) in which you write Java code by hand. The course is taught in Java and covers object-oriented programming, data types, control structures, classes, arrays, ArrayLists, 2D arrays, inheritance and recursion. A printed Java Quick Reference is provided.
How is AP Computer Science A scored?
On the 1–5 AP scale. The multiple-choice section is worth about half and the four free-response questions about half, combined into that single 1–5 score. Score distributions are approximate and vary by year — confirm current data on College Board.
Do you write real code on the AP Computer Science A exam?
Yes. The four free-response questions ask you to write actual Java code by hand — for example methods that work with classes, arrays, ArrayLists and 2D arrays. It is not pseudocode. A Java Quick Reference sheet is provided for the methods you can rely on.
What is a good AP Computer Science A score?
A 3 or higher is considered qualified and is the common passing line; a 4 or 5 is strong and earns credit more widely. Whether a score earns credit or placement depends on each college — confirm your target school's credit policy on its site.
When is the AP Computer Science A exam?
In May, on the College Board's fixed AP exam schedule. Confirm the current year's date on College Board.

One plan for your whole testing season.

PrepScore’s full practice covers the SAT, the ACT and select AP subjects — with an explanation on every question.