AP Computer Science A · Practice exam
Free AP Computer Science A Practice Exam
A full-length, timed practice exam in the format students sit in May 2027. It covers all four units of the revised course in two 90-minute sections, with a worked explanation for every multiple-choice question and a point rubric for every free-response question.
Free to take. A free account shows your score.
46 questions · 3 hours · Original questions
In short
Yes. This free AP Computer Science A practice exam has two sections: 42 multiple-choice questions in 90 minutes and 4 Java free-response questions in 90 minutes, matching the May 2027 format. Multiple choice is marked automatically, and you mark the free response against a 25-point rubric. It is free to take, and a free account shows your score.
- Version
- AP Computer Science A (Java), May 2027 exam format
- Section I
- 42 multiple-choice questions · 90 minutes · 55%
- Section II
- 4 free-response questions · 90 minutes · 45%
- Tools
- No calculator. The Java Quick Reference is provided for both sections
- Results
- Weighted percent with a unit-by-unit breakdown. No AP score is predicted
The paper
What is in the AP Computer Science A practice test
Section I: Multiple Choice
42 questions · 1 hour 30 minutes · 55% of the result
Section I has 42 questions with four choices each. Most stand alone, and two short sets share a class or a method, as on the real exam. The questions follow the course weighting for the multiple-choice section, so Data Collections and Selection and Iteration carry the most questions, and there is no penalty for guessing.
No calculator. Java Quick Reference provided
Start this sectionSection II: Free Response
4 questions · 1 hour 30 minutes · 45% of the result
Section II has the four question types in the order College Board uses: Methods and Control Structures (7 points, in two parts), Class Design (7 points), Data Analysis with ArrayList (5 points), and 2D Array (6 points). You type Java code for each one, then tick the rubric points your code earns.
No calculator. Java Quick Reference provided
Start this sectionCoverage
Topics covered
Weights are the official ones where the specification publishes them. Each topic links to its notes, and every topic has an untimed practice set that reuses this paper's questions.
| Topic | Weight | In this paper | Practice |
|---|---|---|---|
| Using Objects and Methods | 15–25% | 9 questions | Practice |
| Selection and Iteration | 25–35% | 13 questions | Practice |
| Class Creation | 10–18% | 7 questions | Practice |
| Data Collections | 30–40% | 17 questions | Practice |
Sample
Try a sample question
This worked question is in the style of the paper but is not one of its questions, so trying it does not spoil the practice test.
Data Collections
The array temps holds the high temperature, in degrees Celsius, for six days in a row. The following code segment counts the days that were warmer than the day before.
int[] temps = {18, 23, 21, 25, 19, 25};
int count = 0;
for (int k = 1; k < temps.length; k++)
{
if (temps[k] > temps[k - 1])
{
count++;
}
}
System.out.println(count);What is printed as a result of executing the code segment?
- A
2 - B
3 - C
4 - D
5
Show the answer and explanation
Answer: B
The loop starts at index 1 and compares each temperature with the one before it, so it makes 5 comparisons. Three of them are increases: 18 to 23, 21 to 25, and 19 to 25. The other two, 23 to 21 and 25 to 19, are decreases. So count is 3. Choice D counts every comparison instead of only the increases.
Scoring
How the result works
Your weighted percent counts the multiple-choice score as 55% and the free-response points you claim as 45%, the same split College Board uses. You also see results by unit and by difficulty. The percent is not converted into a 1–5 score, and no official AP score is predicted, because College Board sets the score scale for each exam.
This paper models AP Computer Science A (Java), May 2027 exam format (College Board course framework effective fall 2025, first examined in May 2026). The format was checked against the AP Computer Science A exam page on AP Central on .
FAQ
About this practice test
Is there a free full-length AP Computer Science A practice test?
Yes. Bright Sprouts Academy's AP Computer Science A Practice Exam 1 is free and full length: 42 multiple-choice questions in 90 minutes and 4 free-response questions in 90 minutes, the format College Board lists for the May 2027 exam.
Do I need an account to take the AP Computer Science A practice exam?
You can take the whole test first, and your answers save on your device as you go. To see your score, the answers, and the explanations, you sign in to a free account with a one-time code sent to your email. There is no password.
Is this an official College Board AP Computer Science A exam?
No. Every question is original and written in the style of the current exam, and none are released College Board items. Your result is a weighted percent with a breakdown by unit, not a predicted AP score.
Can I use a calculator or the Java Quick Reference on this practice exam?
Calculators are not allowed on the real AP Computer Science A exam, so work without one here. The Java Quick Reference is provided in both sections of the real exam, so download it from the College Board exam page and keep it open while you work.
How are the AP Computer Science A free-response questions marked here?
After you submit, each question shows a complete sample solution in Java and a point-by-point rubric. You tick the points your code earns, and the weighted percent updates right away. Code that differs from the sample can still earn every point if it meets the rubric.
Can I practice one AP Computer Science A unit at a time?
Yes. Topic practice reuses this exam's questions one unit at a time, untimed, and checks each answer as you go. Take the full exam first if you want an honest picture of where you stand.
Explore
Keep going
- AP Computer Science A: Units and Topic Notes
- AP (Advanced Placement)
- AP Physics 1 Practice Exam 1
- AP Physics 2 Practice Exam 1
- AP Physics C: Mechanics Practice Exam 1
- AP Physics C: Electricity and Magnetism Practice Exam 1
- AP Chemistry Practice Exam 1
- AP Biology Practice Exam 1
- A-Level Computer Science
- A-Level vs IB vs AP: Which Is Right for You?
Want help with the questions you missed?
Bring your result to a free consultation and we'll turn it into a study plan.
Every question on this site is original and written by Bright Sprouts Academy. AP, Advanced Placement, SAT, and PSAT/NMSQT are registered trademarks of College Board, which is not affiliated with and does not endorse this site. PSAT/NMSQT is also a trademark jointly owned by College Board and National Merit Scholarship Corporation.
Format checked . Exam board and university requirements change, so always check the official specification and admissions pages.