What is on the
AP Computer Science A exam?
Just over half your score comes from the multiple choice, and it is the half you can practice on a screen with instant marking.
Last verified 12 August 2026. Unit 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.
AP Computer Science A is a Java course, and its multiple-choice section is a reading test for code. Every item gives you a method, a class or a segment and asks what it prints, what it returns, or which version does what the comment promises.
| 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 |
What each AP Computer Science A unit asks about
Using Objects and Methods covers String methods such as substring, integer division that silently drops a remainder, and the fact that passing an int to a method does not change the caller's copy. Selection and Iteration is for loops, while loops, nested loops and chains of else-if, where you must find the one branch that runs. Class Creation asks about constructors, private instance variables, static counters shared across objects and the classic bug where a parameter shadows the field it was meant to set. Data Collections is arrays and ArrayList: indexing, length, add at a position, remove by index, and finding a maximum with a loop.
How the questions are built
The dominant format is a code trace: here is a segment, what is printed. A smaller group asks you to choose the expression or method body that meets a stated purpose, and a few ask why a design choice was made, such as making a variable private. There are no essays in this section and no prose passages.
The 45% we do not cover
The other 45% of the grade is four free-response coding questions in 90 minutes: methods and control structures, class design, array and ArrayList work, and 2D arrays. You write Java by hand and a reader scores it against a rubric. We do not mark that half. The forty-two multiple-choice items can be scored exactly, and every wrong option is explained as the specific tracing error that produces it.
Where AP Computer Science A students lose marks
Students who write programs well still lose marks to mechanical slips: dividing two ints and expecting a decimal, counting a loop one pass too many, forgetting that substring stops before its end index, or reading an ArrayList after a remove as though the indexes had not shifted. These are not gaps in understanding. They are what happens when a trace is done in the head instead of on paper.
Our two forms
Our two forms trace different code. A second sitting therefore tests whether you now write variable values in the margin, which is the habit that moves the score, rather than whether you recall an output you saw before. Both open together for five credits.
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
- 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 Computer Science A 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