AP Computer Science A Practice Test

85 questions available

Build your confidence for AP Computer Science A. Practice the concepts, understand the answers, and strengthen your knowledge one question at a time.

Try a sample question
Try 5 free questions
No account needed. A free account includes 20 questions for this exam.
Certification exam
3 hours Time Limit
Your practice
85 Practice questions
1 hour 25 minutes Practice Time
Try 5 free questions
No account needed. A free account includes 20 questions for this exam.
The bar to clear 3 Published passing score for this certification.
Official objectives from College Board
College Board85 practice questions
Blueprint verifiedChecked against College Board official objectivesMetadata verified 2026-09-17How we verify

Exam overview and details

This AP Computer Science A Practice Test is a comprehensive assessment designed to evaluate mastery of the core topics covered in the AP Computer Science A curriculum. It consists of 90 questions that span the full range of required content, including 2D Arrays, Arrays, ArrayLists, Boolean Expressions and if Statements, Inheritance, Iteration, Primitive Types, Recursion, Using Objects, and Writing Classes. The test is intended for high school students preparing for the AP exam, self-learners seeking to validate their understanding, or educators looking for a rigorous benchmark. By taking this practice test, you will gain a clear measure of your proficiency in object-oriented programming, algorithm design, and problem-solving using Java. You will also develop the ability to trace code, identify logical errors, and apply key concepts such as polymorphism, recursion, and array traversal. The test emphasizes both conceptual understanding and practical coding skills, mirroring the style and difficulty of the actual AP exam. Upon completion, you will have a detailed diagnostic of your strengths and areas for improvement, enabling targeted study and increased confidence for the official exam.

Sample Questions

Choose an answer and explore the explanation to see how practice works.

Primitive Types

A variable must store a real number, an integer, or a truth value. Which primitive set covers these needs?

ArrayList

A program executes `new ArrayList()`. What initial contents should be expected?

Recursion

Which feature commonly tracks progress in a recursive process?

Boolean Expressions and if Statements

A student compares two boolean variables with `!=`. What does the comparison examine?

Recursion

How are recursive parameters similar to loop control variables?

Exam insights and study advice

Mastering the topics in this practice test is not just about passing an exam; it directly translates to real-world software development and computational thinking. Arrays and ArrayLists are fundamental data structures used in everything from video game inventories to database management. Recursion and iteration are the backbone of algorithms that power search engines, file systems, and artificial intelligence. Inheritance and polymorphism are essential for building scalable, maintainable code in large-scale applications like web frameworks and mobile apps. Boolean expressions and if statements form the logic behind every decision-making process in software, from user authentication to autonomous vehicle navigation. By solidifying these skills, you are building the foundation for a career in computer science, data science, or any field that requires logical reasoning and efficient problem-solving. This practice test ensures you can apply these concepts under pressure, a skill that employers and college programs value highly.

What this exam covers

012D Array

Explore two‑dimensional arrays as matrices. Understand row‑column indexing and use nested loops to traverse and manipulate grid‑based data structures, including matrix arithmetic and image processing, using nested loops for efficient computation.

02Array

Work with one‑dimensional arrays: declaration, initialization, indexing, and iteration. Perform common operations such as searching, sorting, and copying elements within an array, including binary search and merging, in practical scenarios.

03ArrayList

Utilize the java.util.ArrayList class for dynamic collections. Add, remove, retrieve, and iterate over elements, leveraging its methods to simplify list management for dynamic data handling across various program modules.

04Boolean Expressions and if Statements

Develop skill in forming boolean expressions, using relational operators, and controlling program flow with if, if‑else, and nested conditional statements. Evaluate complex logical conditions accurately for decision making in Java programs.

05Inheritance

Apply inheritance to create subclass relationships, use the super keyword, and override methods. Recognize polymorphic behavior and how it enables code reuse and extensibility across class hierarchies, to enable flexible code.

06Iteration

Master iteration constructs such as for, while, and do‑while loops. Control loop counters, prevent infinite loops, and apply loops to process collections and repeated calculations, especially in algorithm design and data processing tasks.

07Primitive Types

Understand Java primitive data types, how to declare variables, use literals, and perform type casting. Master the range and precision of each type to avoid overflow and loss of data in calculations.

08Recursion

Design recursive methods with clear base cases and recursive steps. Analyze call stacks and solve problems such as factorial, Fibonacci, and tree traversals using recursion for solving complex problems in computer science curricula.

09Using Objects

Explore two‑dimensional arrays as matrices. Understand row‑column indexing and use nested loops to traverse and manipulate grid‑based data structures, including matrix arithmetic and image processing, using nested loops for efficient computation.

10Writing Classes

Design and implement classes with appropriate fields, methods, and constructors. Apply access modifiers, encapsulation, and object‑oriented principles, including inheritance and interfaces, to build reusable code structures for scalable applications.

Exam Details AP CS A | $98 USD | 3 hours

Exam Code AP CS A
Vendor College Board
Exam Cost $98 USD
Passing Score 3
Time Limit 3 hours
Question TypesMultiple Choice, Free Response
Retake Policy AP exams are offered once per year in May. Students may retake the exam in a subsequent year; there is no same-year retake. Scores from all attempts are reported to colleges unless the student requests score cancellation.
Exam Format Paper-based; two sections: multiple choice and free response. Administered at school in May. AP Studio Art/Drawing: portfolio submission. AP Research/Seminar: academic paper and oral presentation.
Exam rules No electronic devices (including phones and smartwatches) permitted during the exam. Approved calculators allowed for some sections (e.g., AP Calculus, AP Statistics, AP Physics). AP Studio Art and AP Research/Seminar are assessed via portfolio or academic paper rather than a timed written exam. All exams are paper-based (multiple choice + free-response) except AP Computer Science Principles (some digital components).

Frequently Asked Questions

How long should I take to complete this 90-question practice test?

Are there any questions that require writing full code, or is it all multiple choice?

What if I don't know Java? Can I still take this test?

How is recursion tested? Will I need to write recursive methods?

Can I use a calculator or reference sheet during the test?