AP COMPUTER SCIENCE · CODE, DATA, SYSTEMS, AND IMPACT

AP Computer Science Practice Test

Build AP Computer Science readiness with five focused practice sets combining AP Computer Science A Java programming with the current 2026–27 AP Computer Science Principles framework: objects, control, classes, collections, data, algorithms, networks, security, impact, and responsible computing.

AP Computer Science practice sets

College Board offers separate AP Computer Science A and AP Computer Science Principles courses. This supplemental page brings both tracks together in five practice sets: three Java-focused CSA booklets and two current-framework CSP booklets.

CSA and CSP skills

  • AP Computer Science A Units 1–4: using objects and methods; selection and iteration; class creation; data collections including ArrayList and two-dimensional arrays
  • AP Computer Science A practices: design code, develop code, analyze code, and document code and computing systems
  • AP Computer Science Principles Big Ideas 1–5: creative development; data; algorithms and programming; computer systems and networks; and impact of computing
  • AP Computer Science Principles practices: computational solution design, algorithms and program development, abstraction, code analysis, computing innovations, and responsible computing
  • Code, binary, powers, indexes, and data calculations use the system’s supported notation where mathematical display is needed

How to use this page

For Java questions, trace types, references, method calls, control flow, indexes, and object state before choosing an answer. For CSP questions, identify the representation, abstraction, algorithm, network behavior, evidence, or social impact. These are original supplemental questions, not official College Board questions, secure exam content, Bluebook forms, or a substitute for current College Board policies.

The AP Computer Science A course page lists the current Java units and computational thinking practices. The AP Computer Science A exam page describes the current fully digital Java exam and Quick Reference. The AP Computer Science Principles course page lists the current 2026–27 Big Ideas and practices. The AP CSP exam page describes the current end-of-course exam and Create performance task.

College Board has announced an AP CSP redesign for 2027–28. This page targets the current 2026–27 AP CSP framework for the May 2027 administration; review the official redesign information before preparing for a later course year.

For additional preparation, visit AP Statistics Practice, AP Physics Practice, Computer Science and Technology Tests, or use Pomodoro for focused study intervals.

5. Test

AP Computer Science Practice Questions

A 10-question AP Computer Science practice set focused on ap computer science principles: systems, impact, and responsible computing with original code, data, algorithms, and computing-impact explanations.

Trace code carefully, identify data representations and abstractions, evaluate algorithms and systems, and consider responsible computing impacts. Review the three-step explanation after answering. These questions are original supplemental practice, not official College Board questions.

10 Questions
0/100%
Reading settings
Reading settings
Text size
18px
Line spacing
1.70
C 0I 0U 10
1. QuestionMultiple choice

The digital divide refers to unequal access to

Please select an answer first.

Correct answer: A

The correct answer is computing devices, reliable Internet, and related digital resources.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: The digital divide describes gaps in access, connectivity, skills, and opportunities to use computing technologies.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

The digital divide describes gaps in access, connectivity, skills, and opportunities to use computing technologies.

2. QuestionMultiple choice

An algorithm may produce biased outcomes when

Please select an answer first.

Correct answer: B

The correct answer is the training data or design reflects unfair patterns or excludes relevant groups.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: Computational systems can reproduce or amplify bias present in data, labels, objectives, or design choices.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

Computational systems can reproduce or amplify bias present in data, labels, objectives, or design choices.

3. QuestionMultiple choice

Personally identifiable information should be protected because it

Please select an answer first.

Correct answer: C

The correct answer is can be used to identify or harm individuals if collected or disclosed improperly.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: Names, locations, identifiers, and linked data can expose people to privacy, security, or discrimination risks.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

Names, locations, identifiers, and linked data can expose people to privacy, security, or discrimination risks.

4. QuestionMultiple choice

A programmer who uses an open-source library should first

Please select an answer first.

Correct answer: D

The correct answer is review its license, documentation, security considerations, and compatibility with the project.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: Open-source software can be reused under license terms, and developers should understand its behavior, provenance, security, and compatibility.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

Open-source software can be reused under license terms, and developers should understand its behavior, provenance, security, and compatibility.

5. QuestionMultiple choice

A computing innovation can have both positive and negative effects because

Please select an answer first.

Correct answer: A

The correct answer is the same technology can create benefits while changing privacy, access, employment, or social behavior.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: Computing innovations can improve communication or efficiency while also producing risks, unequal access, new dependencies, or unintended effects.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

Computing innovations can improve communication or efficiency while also producing risks, unequal access, new dependencies, or unintended effects.

Numicorn

A Numicorn tip

Share it and study together

Share the page with a friend, solve questions together and keep moving forward.

6. QuestionMultiple choice

A secure password policy should encourage users to

Please select an answer first.

Correct answer: B

The correct answer is use long, unique passwords and protect authentication information.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: Long unique passwords reduce reuse risk, while authentication information should be kept private and protected.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

Long unique passwords reduce reuse risk, while authentication information should be kept private and protected.

7. QuestionMultiple choice

A Create performance task program should be evaluated partly by whether it

Please select an answer first.

Correct answer: C

The correct answer is addresses a stated purpose and can be explained using its code, data, and computational decisions.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: A strong project connects program design and implementation to a purpose and documents how code and data produce the result.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

A strong project connects program design and implementation to a purpose and documents how code and data produce the result.

8. QuestionMultiple choice

A data visualization can mislead readers when it

Please select an answer first.

Correct answer: D

The correct answer is uses a truncated axis or scale that exaggerates a difference.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: Axis choices, scales, labels, and omitted context affect how readers interpret visual data.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

Axis choices, scales, labels, and omitted context affect how readers interpret visual data.

9. QuestionMultiple choice

Testing a program with boundary cases is useful because boundary cases

Please select an answer first.

Correct answer: A

The correct answer is reveal errors that may occur at minimum, maximum, empty, or transition inputs.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: Boundary tests target limits where indexing, conditions, and assumptions often fail.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

Boundary tests target limits where indexing, conditions, and assumptions often fail.

10. QuestionMultiple choice

Responsible computing is best represented by a team that

Please select an answer first.

Correct answer: B

The correct answer is considers safety, privacy, accessibility, inclusion, attribution, and the effects on affected communities.

  1. Trace the program or computing system: Identify the data, variables, objects, control flow, abstraction, network layer, or social impact described in the question.
  2. Apply the computer science principle: Responsible computing considers technical performance together with ethical, legal, social, privacy, and accessibility consequences.
  3. Check the result and assumptions: Check types, indexes, order of execution, boundary cases, representation, privacy, reliability, and whether the conclusion follows from the evidence.

Responsible computing considers technical performance together with ethical, legal, social, privacy, and accessibility consequences.

Numicorn

A Numicorn tip

Share it and study together

Share the page with a friend, solve questions together and keep moving forward.

Test solutions

Review every solution on this page in one place.

Previous testNext test

Choose your next study path

Frequently asked questions about AP Computer Science Practice

What does this AP Computer Science page cover?

It combines three AP Computer Science A Java practice sets with two current AP Computer Science Principles practice sets covering code, objects, control, collections, data, algorithms, networks, security, computing impact, and responsible computing.

Are AP Computer Science A and AP Computer Science Principles the same exam?

No. They are separate College Board courses and exams. This page is a combined supplemental hub, and each booklet identifies whether it focuses on CSA or CSP.

What is the current AP Computer Science A exam structure?

For the May 2027 administration, the College Board describes a fully digital exam with 42 multiple-choice questions in 90 minutes and 4 Java free-response questions in 90 minutes: methods and control, class design, ArrayList data analysis, and two-dimensional arrays.

What is the current AP Computer Science Principles assessment?

The current AP CSP assessment combines a Create performance task with an end-of-course digital exam. The 2026–27 exam page describes 70 multiple-choice questions in 120 minutes plus two written-response questions connected to the student’s Create project.

Will AP Computer Science Principles change?

College Board has announced a redesign for the 2027–28 school year. This page targets the current 2026–27 framework and May 2027 administration; check official College Board updates for later years.

Are these official College Board questions?

No. They are original supplemental questions. Use College Board resources for the Java Quick Reference, Create task requirements, Bluebook previews, scoring, and administration details.