100+ Free AP Computer Science A Practice Questions
Pass your AP Computer Science A exam on the first try — instant access, no signup required.
A helper method used only inside a class to support its public methods should generally be declared with which access modifier?
Explore More Advanced Placement (AP)
Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.
Key Facts: AP Computer Science A Exam
42
multiple-choice questions in Section I (55% of the exam score)
College Board AP Central
4
free-response questions in Section II (45% of the exam score)
College Board AP Central
3 hours
total testing time, split evenly between the two sections
College Board AP Central
4 units
course structure effective Fall 2025 (down from 10 units)
AP CSA Course and Exam Description 2025
1-5
score scale; a 3 or higher typically earns college credit
College Board
Java
the single programming language used on the entire exam
College Board AP Central
The AP Computer Science A exam is a 3-hour Java programming test with 42 multiple-choice questions (Section I, 1 hour 30 minutes, 55% of the score) and 4 free-response questions (Section II, 1 hour 30 minutes, 45%). Effective Fall 2025 the course was redesigned into four units: Using Objects and Methods, Selection and Iteration, Class Creation, and Data Collections; inheritance and polymorphism were removed and reading text files with Scanner was added. There is no penalty for wrong multiple-choice answers, the exam is scored 1-5, and a 3 or higher typically earns college credit (source: College Board, AP Central).
Sample AP Computer Science A Practice Questions
Try these sample questions to test your AP Computer Science A exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.
1What is the value of the expression 17 / 5 in Java, where both operands are of type int?
2Given String s = "Computer";, what does s.substring(2, 5) return?
3What does the expression Math.abs(-7) + Math.pow(2, 3) evaluate to?
4Consider: double d = (double) 9 / 4; What value is stored in d?
5Given String word = "banana";, what does word.indexOf("an") return?
6What is printed by the following code? String a = "cat"; String b = "car"; System.out.println(a.compareTo(b) > 0);
7Which expression correctly tests whether two String references s1 and s2 contain the same sequence of characters?
8A method has the signature public void change(int x). Inside change, x is reassigned to x * 2. After calling change(n) where int n = 5, what is the value of n?
9Which of the following correctly declares an ArrayList that stores Integer values?
10What does the following print? String s = "Hello"; System.out.println(s.length());
About the AP Computer Science A Exam
AP Computer Science A is an introductory college-level computer science course taught in Java. Effective Fall 2025, the course is organized into four units: Using Objects and Methods, Selection and Iteration, Class Creation, and Data Collections. The exam is delivered digitally in the Bluebook app and has a 42-question multiple-choice Section I (55% of the score) and a 4-question free-response Section II (45%), for about 3 hours of testing.
Questions
42 scored questions
Time Limit
3 hours (1h30m multiple-choice + 1h30m free-response)
Passing Score
Scored 1-5; a 3 or higher typically earns college credit
Exam Fee
About $99 (College Board)
AP Computer Science A Exam Content Outline
Unit 1: Using Objects and Methods
Object references and aliasing, calling methods, String and Math methods, casting and integer division, wrapper classes, and pass-by-value.
Unit 2: Selection and Iteration
Boolean logic, short-circuit evaluation, if/else, while and for loops, nested loops, String traversal, and accumulator/counter patterns.
Unit 3: Class Creation
Writing classes, constructors, instance variables, accessor and mutator methods, static vs instance members, this, and encapsulation.
Unit 4: Data Collections
Arrays, ArrayList, 2D arrays, traversal patterns, linear and binary search, selection/insertion/merge sort, recursion tracing, and File/Scanner input.
How to Pass the AP Computer Science A Exam
What You Need to Know
- Passing score: Scored 1-5; a 3 or higher typically earns college credit
- Exam length: 42 questions
- Time limit: 3 hours (1h30m multiple-choice + 1h30m free-response)
- Exam fee: About $99
Keys to Passing
- Complete 500+ practice questions
- Score 80%+ consistently before scheduling
- Focus on highest-weighted sections
- Use our AI tutor for tough concepts
AP Computer Science A Study Tips from Top Performers
Frequently Asked Questions
How many questions are on the AP Computer Science A exam?
Section I has 42 multiple-choice questions (1 hour 30 minutes, 55% of the score) and Section II has 4 free-response questions (1 hour 30 minutes, 45%), for about 3 hours of testing total.
What programming language is used on the AP CSA exam?
AP Computer Science A is taught and tested entirely in Java. The exam provides a Java Quick Reference listing the specific String, Math, and ArrayList methods you are expected to know.
What changed in the 2025-2026 AP CSA course?
Effective Fall 2025 the ten older units were consolidated into four: Using Objects and Methods, Selection and Iteration, Class Creation, and Data Collections. Inheritance and polymorphism were removed, and reading text files with the File and Scanner classes was added.
How is the AP Computer Science A exam scored?
The exam is scored on the standard AP 1-5 scale. There is no penalty for wrong multiple-choice answers, so you should answer every question. A score of 3 or higher typically earns college credit.
Is recursion still on the AP CSA exam?
Yes. Recursion appears in Unit 4 (Data Collections) and is primarily tested as recursion tracing, where you predict the output or return value of given recursive code rather than writing it.
How much does the AP Computer Science A exam cost?
The standard US AP exam fee for 2025-26 is about $99 per exam. Fee reductions are available for eligible students through the College Board.