AP Computer Science A · 4 units · 53 topics

Score a 5 on AP Computer Science A.

Four units covering Java objects and methods, selection and iteration, class design, and data collections. Every topic includes an interactive, execution-verified code trace and an explanation of the state changes that matter.

30,000+ AP students Score guarantee
Free practice

Try 16 AP Computer Science A questions in the real test engine.

  • 16 multiple-choice questions from our full-length tests
  • 35 minutes, the real exam's pace
  • Same engine as our full-length tests, then every answer explained
Start the free practice set →

Or try two questions right here:

AP Computer Science A · Sample questions


Consider the following code segment.

String result = "";
for (int i = 1; i <= 5; i++)
{
  result += i;
}
System.out.println(result);

1


Which of the following best describes the behavior of the code segment?

FAQ

AP Computer Science A questions, answered.

What's on the AP Computer Science A Exam?
The AP Computer Science A Exam is 3h long: Multiple choice (42 questions, 90 minutes, 55% of the score) and Free response (4 questions, 90 minutes, 45% of the score). These figures come from College Board's AP Computer Science A exam page.
Are these AP Computer Science A notes free?
Unit 1 is free to read in full, and every other unit shows its first topic free. A free 7-day trial opens all 4 units and the full-length practice tests.
How many units are in AP Computer Science A?
AP Computer Science A has 4 units: Unit 1, Using Objects and Methods (15–25% of the exam); Unit 2, Selection and Iteration (25–35% of the exam); Unit 3, Class Creation (10–18% of the exam); Unit 4, Data Collections (30–40% of the exam).
When is the AP Computer Science A Exam?
AP Exams are held over two weeks every May. College Board publishes the schedule for each year; the AP exam calendar lists the dates once they are announced.
How is the AP Computer Science A Exam scored?
AP Exams are scored from 1 to 5. The AP Computer Science A score calculator estimates your score from your results on each section.

Ready for a 5? Start free today.

7 days free — $0.00 due today. Every AP Computer Science A unit and full-length test, plus 18 more AP subjects.

Start my free 7 days →

Then $15/mo on annual · cancel anytime · score guarantee