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 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.
Two sections, all in Java
The exam splits its weight between multiple choice and free response, and every question is grounded in Java programming.
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.
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.
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.
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.
AP Computer Science A questions
What's on the AP Computer Science A exam?
How is AP Computer Science A scored?
Do you write real code on the AP Computer Science A exam?
What is a good AP Computer Science A score?
When is the AP Computer Science A exam?
Keep exploring AP.
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.