AP Computer Science Principles

AP CSP Practice, Pseudocode Runner and Score Calculator

Run code written in the AP exam reference sheet language, practice exam-style questions by Big Idea and estimate your AP score. Free, no sign-up.

Practice by Big Idea

The exam weighting comes from the College Board course and exam description.

Build your Create performance task

Write and test the program for your Create task online, then keep the code segments you need for your Personalized Project Reference. Your program needs:

  • A list (or other collection) that manages complexity in your program
  • A procedure with at least one parameter that uses sequencing, selection and iteration
  • Calls to that procedure, input from the user and output that depends on it
For teachers

Teaching AP CSP?

Create a class, give your students programming exercises with automatic checks and AI help you control, and follow their work live. Students join with a code or through Google Classroom.

What AP CSP pseudocode looks like

The exam writes code in its own language. Lists start at index 1, ← assigns a value, and DISPLAY shows a value followed by a space.

scores ← [72, 95, 88]
total ← 0
FOR EACH score IN scores
{
   total ← total + score
}
DISPLAY (total / LENGTH (scores))

Frequently asked questions

Does the runner follow the exam reference sheet?

Yes. It runs the text language of the AP CSP exam reference sheet: assignment with ←, DISPLAY and INPUT, arithmetic with MOD and RANDOM, IF and ELSE, REPEAT n TIMES, REPEAT UNTIL, FOR EACH, procedures with RETURN, list operations with lists that start at index 1, and the robot commands MOVE_FORWARD, ROTATE_LEFT, ROTATE_RIGHT and CAN_MOVE.

How is the AP CSP exam scored?

The end-of-course exam has 70 multiple choice questions in 2 hours and counts for 70% of the score. The Create performance task (your program, a video and written responses about it on exam day) counts for 30%. The total becomes an AP score from 1 to 5.

Are these official College Board questions?

No. The practice questions are written by CodeUtility in the style of the exam, with explanations. AP is a trademark of the College Board, which is not affiliated with this site.

Can I write my Create task program here?

Yes. Use the Python or JavaScript online compiler to write and test your program, and the pseudocode runner to check how your algorithm reads in AP CSP pseudocode.

Is it free?

Yes. Every tool works in the browser without an account. Sign in only if you want to save your work or join a class.

AP is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this site.