AP Computer Science A (AP CSA) is a real programming course — think of it as a first college coding class in Java. The exam reflects that: you’ll answer 42 multiple-choice questions and write actual Java code in four free-response questions. This guide walks through the complete format (recently redesigned), the four units and which matter most, the four consistent free-response question types, and how the exam is scored, plus how CSA differs from AP Computer Science Principles.
The essentials: the AP Computer Science A exam is a fully digital, ~3 hour exam with two sections. Section I (Multiple Choice): 42 questions, 1 hr 30 min, 55% — four answer choices, mostly individual questions, testing reading and analyzing Java code. Section II (Free Response): 4 questions, 1 hr 30 min, 45% — where you write actual Java code in the Bluebook editor. The four free-response questions are the same types every year: Q1 Methods & Control Structures, Q2 Class Design, Q3 Data Analysis with ArrayList, Q4 2D Array. The course uses Java and is organized into four units (recently redesigned from ten): Unit 1 Using Objects & Methods, Unit 2 Selection & Iteration, Unit 3 Class Creation, Unit 4 Data Collections — with Unit 4 (arrays, ArrayLists, 2D arrays) heaviest. You get the Java Quick Reference on screen. It’s roughly a first-semester college CS course, and its companion is AP Computer Science Principles (the broad, no-language course). Here’s the full breakdown.
Once you know the format, use the AP score calculator to see what multiple-choice and free-response performance you need for a 3, 4, or 5. Then explore practice resources and how hard AP CSA is.
What this guide covers
What AP Computer Science A is
Before the format, a quick orientation to what this course actually is. A real Java programming class.
AP Computer Science A is a genuine programming course — essentially the equivalent of a first-semester college computer science class, taught in Java. Unlike AP Computer Science Principles (which is a broad, conceptual introduction to computing), CSA is focused and technical: you learn to write, analyze, test, and debug actual Java code. The course centers on object-oriented programming — classes, objects, and methods — along with problem solving, algorithm development, and core data structures (arrays, ArrayLists, 2D arrays). You’ll spend the year writing a lot of code, and the exam expects you to solve problems from scratch in Java, so real comfort with Java syntax and structure is essential. The College Board requires CSA courses to include at least 20 hours of hands-on lab time for programming practice, underscoring how practice-based the course is. CSA is best suited to students who are ready to learn serious programming — often those considering a computer science, software engineering, or STEM major, or who simply want to learn to code properly. It’s more demanding technically than CSP but rewards programming skill. A background in algebra and some basic programming familiarity helps, though it’s not strictly required. This hands-on, Java-based, code-writing focus is what shapes the exam. For the broad, beginner-friendly alternative, see the AP Computer Science Principles exam guide.
The key framing: AP CSA is a real Java programming course, roughly a first-semester college CS class. You learn object-oriented programming and write actual code, and the exam makes you write Java from scratch. Its companion, AP Computer Science Principles, is the broad, conceptual, no-required-language course instead.
The AP Computer Science A exam format
Here’s the complete structure. Two equal-time sections, one reading code and one writing it.
The AP CSA exam is about 3 hours and has two sections of equal time. Section I is multiple choice: 42 questions in 1 hour and 30 minutes (90 minutes), worth 55% of your score, with four answer choices each. The questions are mostly individual (occasionally in small sets of 2) and test your ability to read and analyze Java code — determining output, tracing logic, finding errors, and reasoning about program behavior. Section II is free response: 4 questions in 1 hour and 30 minutes (90 minutes), worth 45% of your score, where you write actual Java code by hand (typed into the Bluebook code editor). The entire exam is fully digital in the Bluebook app — there’s no paper option — and all responses are submitted automatically at the end. A defining feature: the two sections are close in weight (55% and 45%), so both reading code (multiple choice) and writing code (free response) matter substantially. Note that this format reflects a recent redesign — the exam moved to fully digital and the structure was updated (the current version has 42 multiple-choice questions and 55/45 weighting). The Bluebook code editor provides syntax highlighting but no autocomplete, and the Java Quick Reference is available on screen throughout. The table lays out the structure.
| Section | Questions | Time | Weight |
|---|---|---|---|
| Section I — Multiple Choice | 42 | 1 hr 30 min (90 min) | 55% |
| Section II — Free Response (write Java) | 4 | 1 hr 30 min (90 min) | 45% |
| Total | 46 | ~3 hours | 100% |
Fully digital in Bluebook (no paper option). Four answer choices on MCQ. Java Quick Reference available on screen. Reflects the recent exam redesign.
The multiple-choice section in detail
Multiple choice is the larger piece at 55%, and it’s all about reading code. Trace, analyze, find errors.
The multiple-choice section is 55% of your score — the larger single piece — so it deserves serious attention. The specifics: 42 questions in 90 minutes (about 2.1 minutes per question), with four answer choices (A–D). The questions are mostly individual, though occasionally 1–2 sets appear (2 questions sharing a common scenario). What they test is fundamentally reading and reasoning about Java code: determining the output or result of a code segment given initial values, tracing program behavior, analyzing code for correctness, equivalence, and errors, and describing the conditions that lead to a result. In other words, you’re reading Java and predicting or evaluating what it does. This tests the same object-oriented and algorithmic concepts as the rest of the course — methods, control structures (conditionals and loops), classes, arrays, ArrayLists, and 2D arrays — but in a read-and-analyze format rather than a write-from-scratch one. The section is computer-scored, and (as with most AP exams) there’s no penalty for wrong answers, so you should answer every question. Because code-tracing is central, the best preparation is practicing reading Java carefully — following loops iteration by iteration, tracking variable values, and watching for off-by-one errors, boundary conditions, and subtle logic bugs. Strong code-reading skill translates directly into multiple-choice points. For how to drill this, see the practice guide.
The four free-response questions
Here’s a standout feature of CSA: the four free-response questions are the same types every single year. That predictability is a gift.
The free-response section (45% of your score) has a feature that makes it uniquely predictable: the four questions are the same types every single year, and have been for many years. All four require you to write Java code to meet given specifications. Question 1 — Methods and Control Structures: you’ll write two methods, or one constructor and one method, of a given class, using iterative or conditional statements and calls to other methods (including String methods). Question 2 — Class Design: you’ll design and implement a complete class from a specification (defining instance variables, a constructor, and methods), sometimes involving a second class. Question 3 — Data Analysis with ArrayList: you’ll write a method that uses, analyzes, and manipulates data in an ArrayList. Question 4 — 2D Array: you’ll write a method that creates, traverses, and manipulates a 2D array (typically with nested loops). This consistency is a huge advantage for preparation: because you know exactly what four question types you’ll face, you can practice each type deliberately until you’re fluent. A key strategy note: the questions differ in point value, so budget your time toward the higher-value questions and attempt every part (partial credit is awarded). You’ll also want to use the Java Quick Reference and write clean, syntactically correct code. The practice guide covers drilling each FRQ type.
The four free-response types are the same every year, so deliberate practice pays off. See the AP CSA practice guide for how to drill each, and check how long the exam is to plan your pacing.
The four units — and which matter most
The course was recently streamlined to four units, and one dominates. Here’s the map. Unit 4 (Data Collections) carries the most weight.
Following a recent redesign (which replaced the older ten-unit framework), the AP CSA course is now organized into four units, all tested but not equally weighted. They are: Unit 1 — Using Objects and Methods (about 15–25% of the multiple-choice questions; the foundation — objects, methods, and basic types); Unit 2 — Selection and Iteration (about 25–35%; conditionals and loops, the core of program logic); Unit 3 — Class Creation (about 10–18%; writing your own classes); and Unit 4 — Data Collections (about 30–40%; arrays, ArrayLists, and 2D arrays). The weighting is uneven and worth knowing: Unit 4 (Data Collections) carries the most weight — so expect the most questions on arrays, ArrayLists, and 2D arrays — and it maps directly to two of the four free-response questions (Q3 ArrayList and Q4 2D Array). Unit 2 (Selection and Iteration) is the second most weighted. The practical takeaway: give Unit 4 the most study time (it’s both the heaviest on multiple choice and half the free-response section), then Unit 2, while keeping a solid grasp of Units 1 and 3. All four units appear in both sections, so a balanced review with extra Unit 4 focus is ideal. Always confirm current weightings in the official Course and Exam Description, since the course was recently updated. The table shows the breakdown.
| Unit | Topic | Approx. MCQ weight |
|---|---|---|
| Unit 4 | Data Collections (arrays, ArrayLists, 2D arrays) | ~30–40% (largest) |
| Unit 2 | Selection & Iteration (conditionals, loops) | ~25–35% |
| Unit 1 | Using Objects & Methods | ~15–25% |
| Unit 3 | Class Creation | ~10–18% |
The Java Quick Reference
One helpful resource is provided on exam day: the Java Quick Reference. Knowing how to use it matters.
A useful thing to know: on the AP CSA exam, you’re given the Java Quick Reference — a document listing the commonly used methods from the Java library that may appear on the exam. It’s available on screen in the Bluebook app throughout the free-response section (and it’s also printable, so schools can provide a paper copy). What it does: it lists the accessible methods (for classes like String, Math, ArrayList, Object, and others) with their signatures and descriptions, so you don’t have to memorize exact method names and parameters. What it doesn’t do: it won’t write code for you or cover Java syntax (loops, conditionals, class structure) — you still need to know how to write correct Java. The practical value is significant: knowing exactly which methods are provided (and which you must remember on your own) is one of the highest-leverage things you can do before exam day. A smart move is to keep the Java Quick Reference open whenever you practice free-response questions, so you’re completely familiar with what’s available and can use it quickly under time pressure. One caution from the exam instructions: writing significant code that could be replaced by a provided library method won’t earn full credit, so knowing the reference helps you write efficient, full-credit solutions. Familiarity with this reference is a real, easy advantage. The practice guide covers using it well.
How the AP CSA exam is scored
Understanding scoring shows where your points come from. The two sections are close in weight.
Scoring combines your two sections into a final AP score from 1 to 5. On the multiple-choice section (55%), you earn one point per correct answer with no penalty for wrong ones — so answer every question. On the free-response section (45%), your four Java coding responses are scored by trained readers on detailed rubrics, awarding points for correct code components — and importantly, partial credit is awarded, so you should write something for every part, even if you can’t complete a whole question. Each free-response question has a different maximum point value, which is why budgeting time toward the higher-value questions matters. Your weighted multiple-choice and free-response points combine into a composite, which the College Board converts to the 1–5 scale using its annual standard-setting process (so cut points shift slightly year to year). The strategic implications follow from the near-even 55/45 split: both sections matter substantially, so you can’t neglect either reading code (MCQ) or writing code (FRQ) — balanced preparation is essential. Because the free-response section awards partial credit, attempting every part of every FRQ is one of the most reliable ways to bank points. Two notes on the numbers: the College Board doesn’t publish a fixed raw-to-score table (it’s re-set each year), and colleges generally look for a 4 or 5 (though some grant credit for a 3). To translate your section performance into a projected 1–5 and set a target, use the AP score calculator, and for what each score means, see what a good AP score is.
AP Computer Science A vs. AP Computer Science Principles
Since the two AP computer science courses are easily confused, here’s the distinction. Java programming vs. broad concepts.
AP Computer Science A and AP Computer Science Principles are both introductory computing courses, but they’re quite different. AP CSA is a focused programming course taught in Java — essentially a first college programming class — where you write actual Java code. Its exam is a traditional format: 42 multiple-choice questions (55%) and 4 free-response questions where you write Java (45%). AP CSP is a broad introduction to computing concepts — algorithms, data, the Internet, and the impact of computing — and it doesn’t require any specific programming language (its exam uses pseudocode). CSP’s exam combines a 70-question multiple-choice section (70%) with the through-course Create performance task (30%). In short: CSA is a deeper dive into programming (real Java coding), while CSP is conceptual and accessible (broad, less code-heavy). Which to take? CSA suits students ready to learn serious programming or considering a computer science or STEM major; CSP suits students wanting a broad, beginner-friendly introduction or newer to computing. On difficulty, they’re hard in different ways — CSP is more accessible to pass (no coding required), while CSA demands programming ability but has a higher rate of top scores among its more self-selected students. Many students take CSP first and CSA later, but they can be taken in either order or independently — neither is a prerequisite for the other. For the broad, conceptual course, see the AP Computer Science Principles exam guide.
How to prepare for the AP CSA exam
Knowing the format, here’s how to turn it into an effective study approach. Write code daily, drill the four FRQ types, focus on Unit 4.
Write code, don’t just read it. Reading code isn’t the same as writing it. Practice writing syntactically correct Java from scratch regularly, since the free-response section (45%) requires exactly that. Daily coding practice builds real fluency.
Drill the four free-response types deliberately. Because Q1 (Methods/Control), Q2 (Class Design), Q3 (ArrayList), and Q4 (2D Array) appear every year, practice each type until you can write clean solutions confidently. This predictability is your biggest preparation advantage.
Focus most on Unit 4 (Data Collections). Arrays, ArrayLists, and 2D arrays are the heaviest on multiple choice (~30-40%) and are two of the four FRQs. Master traversal, searching, filtering, and nested loops, then give Unit 2 (loops and conditionals) strong attention.
Practice code-tracing for multiple choice. The MCQ (55%) is about reading Java and predicting output. Practice following loops iteration by iteration, tracking variables, and spotting off-by-one and logic errors until it’s automatic.
Know the Java Quick Reference cold. Keep it open while practicing FRQs so you know exactly which library methods (String, Math, ArrayList) are provided and which you must remember, and can use them quickly on exam day.
Practice in Bluebook and attempt every FRQ part. Do the digital practice exam so the code editor feels familiar, and since partial credit is awarded, always write something for every part, even if you can’t finish a whole question.
The throughline: because AP CSA is a real programming exam that weights reading code (55%) and writing code (45%) almost evenly, effective preparation means writing Java constantly, drilling the four consistent free-response types, and mastering Unit 4. The predictable FRQ structure is a genuine gift — you know exactly what to practice. With steady, hands-on coding practice, CSA is very achievable, especially for students who enjoy programming. Set a target with the AP score calculator, then build your plan with the AP CSA practice guide and a realistic look at how hard AP CSA is.
Estimate your score with the AP score calculator, find practice resources, check how long the exam is and how hard it is, and compare its companion, AP Computer Science Principles. Browse all education calculators.
AP Computer Science A exam: frequently asked questions
What is on the AP Computer Science A exam?
The AP CSA exam tests your ability to write, analyze, and reason about Java code. It has two sections: Section I is 42 multiple-choice questions (55% of your score), and Section II is 4 free-response questions where you write actual Java code (45% of your score). The course and exam are organized into four units: Unit 1 (Using Objects and Methods), Unit 2 (Selection and Iteration), Unit 3 (Class Creation), and Unit 4 (Data Collections), with Unit 4 (arrays, ArrayLists, and 2D arrays) carrying the most weight. The four free-response questions are consistent every year: Question 1 (Methods and Control Structures), Question 2 (Class Design), Question 3 (Data Analysis with ArrayList), and Question 4 (2D Array). The whole exam is fully digital in the Bluebook app, and you’re given the Java Quick Reference (a list of common library methods) on screen. It focuses on object-oriented programming, problem solving, and algorithms in Java, roughly equivalent to a first-semester college computer science course.
How is the AP CSA exam structured?
The exam is about 3 hours and has two equal-time sections. Section I is multiple choice: 42 questions in 1 hour and 30 minutes (90 minutes), worth 55% of your score, with four answer choices each. The questions are mostly individual, occasionally in small sets, and test reading and analyzing Java code, determining output, and finding errors. Section II is free response: 4 questions in 1 hour and 30 minutes (90 minutes), worth 45% of your score, where you write Java code by hand in the Bluebook code editor. The four free-response questions are the same types every year: Methods and Control Structures, Class Design, Data Analysis with ArrayList, and 2D Array. The entire exam is fully digital in the Bluebook app (there’s no paper option), all responses are submitted automatically, and you have access to the Java Quick Reference on screen throughout. Both sections carry meaningful weight (55% and 45%), so balanced preparation across reading code and writing code is essential.
What programming language is used on the AP CSA exam?
AP Computer Science A uses Java. The entire course and exam are based on the Java programming language, and the free-response section requires you to write actual Java code (not pseudocode). This is a key difference from AP Computer Science Principles, which uses language-neutral pseudocode on its exam and lets you build its Create task project in any language. On the AP CSA exam, you’re given a Java Quick Reference, a list of commonly used methods from the Java library that may appear on the exam, available on screen in the Bluebook app throughout the free-response section (and printable). You’re expected to know Java syntax and be able to write syntactically correct, working code from scratch. The exam focuses on object-oriented programming in Java, including classes, objects, methods, control structures, arrays, ArrayLists, and 2D arrays. Because it’s a real programming exam, comfort with writing and debugging Java code is essential, roughly at the level of a first-semester college computer science course.
How many units are on the AP CSA exam?
The exam covers four units (following a recent redesign that replaced the older ten-unit framework). The units are: Unit 1, Using Objects and Methods (about 15 to 25% of the multiple-choice questions); Unit 2, Selection and Iteration (about 25 to 35%); Unit 3, Class Creation (about 10 to 18%); and Unit 4, Data Collections (about 30 to 40%). Unit 4, which covers arrays, ArrayLists, and 2D arrays, carries the most weight, so expect the most questions there, and it maps directly to two of the four free-response questions (Data Analysis with ArrayList and 2D Array). Unit 2 (Selection and Iteration, meaning conditionals and loops) is the second most weighted. All four units can appear in both the multiple-choice and free-response sections, so a balanced review is important, with extra emphasis on Unit 4. Always confirm current unit weightings in the official AP Computer Science A Course and Exam Description, since the course was recently updated.
Is AP CSA the same as AP Computer Science Principles?
No, they are different courses with different exams. AP CSA is a focused Java programming course, essentially a first college programming class, where you write actual Java code. Its exam is a traditional format: 42 multiple-choice questions (55%) and 4 free-response questions where you write Java (45%). AP CSP is a broad introduction to computing concepts, algorithms, data, the Internet, and the impact of computing, without a required programming language (its exam uses pseudocode). CSP’s exam combines a 70-question multiple-choice section (70%) with a through-course Create performance task (30%). In short, CSA is a deeper dive into programming (real coding in Java), while CSP is conceptual and accessible with less emphasis on code. CSA is better if you’re ready to learn serious programming or considering a computer science major; CSP is better as a broad, beginner-friendly first computing course. Many students take CSP first and CSA later, but they can be taken in either order or independently, neither is a prerequisite for the other.
The quick version
The AP Computer Science A exam is a real Java programming test, about 3 hours with two sections. Section I (multiple choice) is 42 questions in 1 hour and 30 minutes, worth 55% of your score, with four answer choices, testing your ability to read and analyze Java code. Section II (free response) is 4 questions in 1 hour and 30 minutes, worth 45%, where you write actual Java code in the Bluebook editor. The four free-response questions are the same types every year: Methods and Control Structures, Class Design, Data Analysis with ArrayList, and 2D Array, a consistency that makes CSA uniquely predictable to prepare for. The course uses Java and is now organized into four units (recently redesigned from ten): Using Objects and Methods, Selection and Iteration, Class Creation, and Data Collections, with Unit 4 (arrays, ArrayLists, and 2D arrays) carrying the most weight. The whole exam is fully digital in Bluebook, and you get the Java Quick Reference on screen. CSA is roughly a first-semester college CS course and demands real programming ability, unlike its broad, conceptual companion, AP Computer Science Principles.
Estimate your score with the free AP score calculator. Explore practice resources, how long the exam is, and how hard AP CSA is, plus its companion AP Computer Science Principles. Browse all education calculators.
Accuracy note: AP Computer Science A exam format, section weighting, question counts, unit structure, and timing are set by the College Board and can change over time. Notably, AP CSA was recently redesigned, the exam is now fully digital in Bluebook, the multiple-choice section has 42 questions with 55/45 section weighting, and the course was streamlined to four units (from the older ten-unit framework), so older sources may cite outdated details (like 40 questions, a 50/50 split, or ten units). The four free-response question types have been consistent for many years. The details here reflect the recent exam for general informational purposes only. Always confirm the current format, weighting, units, and exam dates on the College Board’s official AP Computer Science A pages and in the Course and Exam Description before test day.
The College Board’s AP Computer Science A exam page gives the official section structure, timing, free-response types, and the Java Quick Reference. AP Computer Science A exam →
The College Board’s AP Computer Science A course page details the four units, skills, and Java concepts. AP Computer Science A course →
