Skip to main content

Unit guides

AP® Computer Science A

Unit guides with several great videos for every topic, flashcards, and exam-style practice questions with every answer explained.

Your exam:

Get a week-by-week study plan to exam day →

No format changes for the May 2027 exam

College Board hasn't announced changes to the Computer Science A exam for 2027. Every course's changes

See College Board's list (opens in a new tab) (apcentral.collegeboard.org · AP Computer Science A row, Most Recent Change column)

Changed in the last two years (1)
  • A revised course frameworkMay 2026

    College Board released a revised course framework in fall 2025, so review books from before then may not match the current units and exam.

    See College Board's announcement (opens in a new tab) (apcentral.collegeboard.org · AP Computer Science A row, Most Recent Change column)

4 units · 53 topics · 285 videos

Study and practice

  • Flashcards

    149 cards with the terms and ideas you need to know cold. The ones you find hard come back sooner.

  • Multiple choice practice

    264 exam-style questions, timed like the real exam, with every answer explained.

  • Practice exam

    The whole multiple choice section: 42 questions in 1 hour 30 minutes, weighted by unit like the real exam. A fresh mix every time.

  • Must-know sheet

    The facts, rules and terms to know cold on exam day, on one page. Filter it by unit, or print it.

  • Free-response practice

    20 free-response questions like the ones on the exam. Score your answer with the rubric and a model answer, or sign in for free AI scoring.

Pick a unit

  • Unit 1

    15–25% of exam

    Using Objects and Methods

    15 topics · 81 videos

    • A program is an algorithm written in a language the compiler can check and the computer can run
    • Every variable has a type, and the type decides what values it can hold and what operations work on it
    • int division throws away the remainder, so the types in an expression change the answer
    • Methods let you use code by knowing what it does, not how it does it
    • Objects are instances of classes, and variables hold references to them
  • Unit 2

    25–35% of exam

    Selection and Iteration

    12 topics · 60 videos

    • Every algorithm is built from three moves: doing steps in order, choosing between paths, and repeating
    • Boolean expressions decide which code runs and how long a loop keeps going
    • De Morgan's laws turn a negated condition into an equivalent one
    • Most loop bugs are off-by-one errors or conditions that never become false
    • Tracing code line by line is the surest way to know what it does
  • Unit 3

    10–18% of exam

    Class Creation

    9 topics · 52 videos

    • Abstraction hides details so you can focus on what a class or method does
    • Encapsulation keeps instance variables private and exposes behavior through methods
    • A constructor sets an object's initial state
    • Object parameters pass a copy of the reference, so methods can change the original object
    • Programs affect people, so programmers have legal and ethical responsibilities
  • Unit 4

    30–40% of exam

    Data Collections

    17 topics · 92 videos

    • An array has a fixed size, while an ArrayList can grow and shrink
    • Traversing a collection with a loop is the base of almost every algorithm here
    • Removing items while traversing an ArrayList needs care to avoid skipping elements
    • A 2D array is an array of rows, usually traversed in row-major order
    • Binary search and merge sort repeatedly cut a problem in half
    • Data can be biased or incomplete, and collecting it puts people's privacy at risk

About the exam

The basics of the 2027 Computer Science A exam, from College Board's official exam page.

AP® Computer Science A exam

Date
, session 2 (usually afternoon)
Length
3 hours
How you take it
Fully digital: every answer in Bluebook
Multiple choice
42 questions, 1 hour 30 minutes, 55% of your scoreMostly single questions, with a few short sets about the same code. Each question has 4 answer choices.
Free response
4 questions, 1 hour 30 minutes, 45% of your scoreYou type Java code in Bluebook: methods and control structures, designing a class, data analysis with an ArrayList, and a 2D array.
Calculator
No calculator.
Reference sheet
The Java Quick Reference, with the String, Integer, Double, Math, ArrayList, File, Scanner and Object methods you may use. It's built into Bluebook.

Guides to the exam

  • What's new on the 2027 AP® exams

    Every change College Board has announced for the May 2027 exams, course by course: question types, timing, scoring and digital testing, plus what's coming next.

  • How AP® scores work

    What each score from 1 to 5 means, how your score is worked out, when scores come out, and how to find out what credit a college gives.

  • The AP® exam format

    How digital testing in Bluebook works, what the multiple choice and free response sections are like, the calculator rules, and each course's exam at a glance.

  • How to study for an AP® exam

    A realistic plan from three months out to exam day, and how to use unit guides, videos, flashcards and practice questions to raise your score.

  • The 2027 AP® exam calendar

    Every 2027 exam date from College Board's official schedule, plus late testing, score release and other deadlines to put in your calendar.

  • AP® exam questions, answered

    Short answers to the questions students ask most: what the exams cost, whether you can retake one, who sees your scores, and how to use this site.