The AP Computer Science A exam:
a complete guide
The most generous clock of any AP we sell, and the section where students lose marks to arithmetic rather than to computer science.
Last verified 12 August 2026. Question counts and timings are read from our own AP Computer Science A practice exams. The 55% weighting is the College Board's, checked 4 August 2026.
The short version
AP Computer Science A gives you 42 multiple-choice questions in 90 minutes and they carry 55% of your grade. That works out at more than two minutes a question, which is the most generous rate of any AP exam we publish.
Just over half. And it is the half you can practice on a screen with instant marking, which matters more in this subject than in any other, because the free-response half needs a human being to read your code.
AP Computer Science A, unit by unit
Four units: using objects and methods, selection and iteration, class creation, and data collections. Data collections and selection and iteration together are two thirds of the section, and arrays are where most of the difficulty concentrates.
| Unit | Questions | Time |
|---|---|---|
| Using Objects and Methods | 8 | 17 min |
| Selection and Iteration | 13 | 28 min |
| Class Creation | 6 | 13 min |
| Data Collections | 15 | 32 min |
| Total | 42 | 90 min |
With more than two minutes per item, this is the slowest clock on any AP we sell, and that is exactly how students get into trouble. A String question can take twenty seconds and a nested loop over an ArrayList three minutes. Skip the long traces on the first pass through a unit, collect the quick points, then return with pencil and paper. Our units are timed separately, so plan the skipping inside each unit rather than across the whole section. Class Creation is the shortest unit, six questions in thirteen minutes, and its constructor and static-counter items reward slow reading: the bug in a constructor that assigns a parameter to itself is visible only if you check which x each line refers to. Data Collections, fifteen questions in thirty-two minutes, is where the time really goes.
How an AP Computer Science A 5 is built
Your Computer Science A result combines the forty-two multiple-choice answers, weighted at 55% of the composite, with four handwritten coding answers at 45%. The College Board sets the band boundaries after scoring, so the composite needed for a 5 shifts slightly between years.
That near-even split matters. A student who writes clean Java but traces carelessly can lose the 5 in the multiple choice, and a careful tracer who freezes on a blank class-design prompt can lose it in the free response. Practice both, and use timed tracing to protect the half that can be measured on a screen.
Guessing on AP Computer Science A
There is no deduction for a wrong answer. On a trace you can usually eliminate the option that ignores integer division and the option that runs one extra pass, which leaves a two-way choice. Never leave a code question empty because the loop looked long.
The part experienced teachers know and beginners do not
The uncomfortable truth about this section is that most wrong answers are not misunderstandings. They are tracing errors. A student who understands nested loops perfectly still gets the question wrong because they lost track of what i was on the third pass. The fix is mechanical and unglamorous: write each variable's value down the margin as you read, every single time, until you no longer need to. Students resist this because it feels like something a beginner does. It is what the people scoring fives do.
The commonest way students prepare wrongly
Preparing by writing programs. Writing code and reading someone else's code are different skills, and this section is entirely the second one. A student who has built three projects and never traced a hostile loop is not ready for it.
A revision plan that fits the weighting
Trace before you code. Take twenty loops out of past questions and write the variable values down the margin for every one, even the ones you are sure of, until the habit is automatic. Then move to arrays and ArrayLists, because data collections and selection and iteration are two thirds of the section between them. Sit a full 42-question paper in one 90-minute block at least twice: the clock is generous per question, which tempts students into sinking ten minutes into a single 2D array item, and that is the failure mode this exam actually punishes.
What our AP Computer Science A practice covers
We cover the forty-two multiple-choice items. The four free-response questions ask you to write methods, design a class, and manipulate arrays and 2D arrays by hand, and that work needs a person who can read Java and award partial credit. We would rather tell you that than call a 42-item section a full exam.
College credit for AP Computer Science A
Computer science departments set their own rules, and they disagree with each other more than most. Computer Science A credit varies more than almost any other subject, because departments disagree about whether a 5 covers their first course or only part of it. Some grant credit, some grant placement into the second course without credit, and some grant nothing but let you skip a prerequisite. Check the department's page, not the college's general AP table, since the two often disagree.
What we found when we tested our own exam
Computer science students are the group most likely to assume a practice question is correct because the code compiles in their head, and the least likely to check whether the answer key itself has a pattern in it. So we measure it. Across the 4 sections of our AP exams long enough to measure (90 questions, in sections of 20 or more), the best score any length-based strategy reaches is 38%, against the 25% that same strategy scores on a paper with no tell in it at all. Four strategies are scored: pick the longest option, pick the shortest, cross off the longest and guess, cross off the shortest and guess.
Computer Science A options are often fragments of code, which resist padding, and the measured figure reflects that.
The figure is read from the live bank by the same script that refuses a build if any section goes over the line. Code options often have a fixed shape, such as a number or a short printed string, which leaves little room for a length pattern, and the measurement confirms it rather than assuming it.
Where to practice
We publish two AP Computer Science A forms with no questions shared between them, and both unlock together for five credits. Every wrong answer carries its own explanation saying what a student who picked it was probably thinking, which is the part that turns a score into something you can act on. There is a free sample on the samples page if you want to see the format before paying for anything.
Two shorter pages go further: what is on the AP Computer Science A exam and pacing the AP Computer Science A multiple-choice section.
Common questions
How many multiple-choice questions are on the AP Computer Science A exam?
AP Computer Science A sets 42, in 90 minutes, which is about 129 seconds a question. That section is 55% of your total score.
What is the rest of the AP Computer Science A exam?
The AP Computer Science A free-response section: four free-response coding questions in 90 minutes: methods and control structures, class design, array and ArrayList work, and 2D arrays. It carries the remaining 45%.
How is an AP Computer Science A score of 1 to 5 calculated?
The multiple choice is 55% of the composite and the four coding questions are 45%. The composite is divided into five bands after scoring, and the cut points move slightly year to year.
Is there a penalty for guessing on AP Computer Science A?
No. A wrong answer costs nothing, and on most traces two options can be ruled out without finishing the loop, so always answer.
Does your practice exam cover the whole AP Computer Science A exam?
No. Ours is the multiple-choice section only, which is 55% of the real score. The four free-response questions ask you to write methods, design a class, and manipulate arrays and 2D arrays by hand, and that work needs a person who can read Java and award partial credit.
Practice the real thing
Our AP exams are full length and written from scratch — every wrong answer carries its own explanation, so you can see what went wrong and why. Ten questions are free, with no account and no card. After that it is five credits an exam.
More on the AP
- What is on the AP Psychology exam?
- AP Psychology multiple choice: pacing
- What is on the AP Computer Science A exam?
- AP Computer Science A multiple choice: pacing
- What is on the AP English Language exam?
- AP English Language multiple choice: pacing
- What is on the AP US History exam?
- AP US History multiple choice: pacing
- What is on the AP World History exam?
- AP World History multiple choice: pacing
- The AP Psychology exam: a complete guide
- The AP English Language exam: a complete guide
- The AP US History exam: a complete guide
- The AP World History exam: a complete guide
- How to use an AP Psychology practice test
- How to use an AP Computer Science A practice test
- How to use an AP English Language practice test
- How to use an AP US History practice test
- How to use an AP World History practice test