If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Khan Academy practice system

We've written over 800 questions to help you prepare for the AP Computer Science Principles exam. Here's an overview of how you can practice with those questions here on Khan Academy.


Most articles are followed by an exercise to practice the skills and knowledge from that article. Each exercise asks you to complete 4 questions at a time, pulled from a set of 12 potential questions.
Screenshot of a Khan Academy lesson, split into instructional materials on the left and exercises on the right. Two exercises are listed, each with 4 questions.
When you complete an exercise, you'll see what percentage you answered correctly. We encourage you to practice again if you missed any or you simply want to make sure you have a firm grasp of the topic. Since each exercise has 12 questions, you can practice 3 times before you start seeing repeated questions. So go ahead, practice again!
Screenshot of an exercise completion screen
Most of the questions are multiple choice, since that's the format used by the exam. A few questions use other answer formats (like a sorting widget or free input box) to help deepen your understanding of a topic.
Screenshot of a multiple-choice exercise about algorithms.
Many of the questions include step-by-step hints that show you how we would answer the question. When that's available for a question, you'll see "Stuck? Use a hint" under the answer options. When you complete a question, you may also see the option there to see the hints. When you're struggling on a question, we strongly recommend you to step through the hints or read the related article. That's what they're there for!
Screenshot of two snippets of Khan Academy UI. The first says "Stuck? Use a hint". The second says "Nice work! Keep going. Or see how we answered this question."
For other questions, we provide rationales instead and display them after you choose an answer. If you chose correctly, we'll display all the rationales. If you chose incorrectly, we'll display the incorrect answer's rationale, which can help if you want to try answering it again.
Screenshot of 4 multiple choice options. The third option is selected and marked as incorrect. A rationale is displayed below the option text.


You'll also find a few quizzes in the longer units. Those quizzes pull questions from the previous lessons so that you can practice your understanding across multiple lessons.
Screenshot of Khan Academy Quiz widget, which includes text "Level up on the above skills and collect up to 400 Mastery points" and button that say "Start quiz".

Unit tests

Each unit concludes with a unit test, which samples questions from all the exercises in the unit. Take the test once you feel confident that you understand the topics from the unit, whether that's from your classroom learnings, outside studying, or earlier practice on Khan Academy.
Screenshot of Khan Academy unit test widget, which includes text "Level up on all the skills in this unit and collect up to 1000 Mastery points!" and a button to "Start unit test".

Want to join the conversation?