Atlasलॉग इन
Black FridayHalf off Premium, through Sunday, Nov 29.See plans
Practice exam

AP Computer Science Principles practice exam

The whole exam in its real format, timed, with free response graded on the rubric and a predicted 1–5 score. Try 5 real questions below first.

Take the full practice exam →Try 5 questions

Your first full exam is free with an account. Premium has no limit, and every exam is new.

What the AP Computer Science Principles exam looks like

1 section, 2 h in all. The Atlas practice exam keeps the same sections, question counts, timing and weights, calculator and no-calculator parts included.

खंडप्रश्नसमयभार
Multiple choice (no calculator)702 h100%

Units on the exam

UnitShare of the exam
Creative development10%–13%
Data17%–22%
Algorithms and programming30%–35%
Computer systems and networks11%–15%
Impact of computing21%–26%

Weights from the College Board’s course and exam description. Each linked unit has its own practice test with sample questions.

5 free AP Computer Science Principles practice questions

Real questions from the Atlas exam pool, with the answer and the working.

  1. A team is designing an app that helps people find wheelchair-accessible entrances to public buildings. Which of the following actions is most likely to reduce the chance that the app overlooks the needs of some of its users?

    1. AGathering feedback throughout development from people who use wheelchairs, walkers, or strollers, and from people with different backgrounds
    2. BHaving the team’s most experienced programmer write all of the code so that its style is consistent
    3. CWaiting to show the app to any users until every feature is finished and tested
    4. DChoosing team members with the same background so the team can reach decisions quickly
    Show the answer

    A.

    Collaboration that brings in diverse perspectives, including the users the app is for, helps a team notice needs it would otherwise miss and avoid bias in what it builds.

    A single author’s consistent style does nothing for users’ needs; holding back feedback until the end makes problems late and costly to fix; a team of one background narrows the perspectives instead of widening them.

    रचनात्मक विकास

  2. What is the sum of the binary numbers 101101 and 011011, written in decimal (base 10)?

    1. A8
    2. B54
    3. C72
    4. D99
    Show the answer

    C.

    From the right, the place values are 1, 2, 4, 8, 16 and 32. 101101 is 45 and 011011 is 27, so the sum is 45 + 27 = 72 (in binary, 1001000).

    8 counts the 1 bits instead of adding place values; 54 adds each column without carrying; 99 reads each number from right to left, with the leftmost bit as the ones place.

    डेटा

  3. Consider the following code segment.

    x ← 20
    count ← 0
    REPEAT UNTIL(x ≤ 5)
    {
      x ← x - 3
      count ← count + 1
    }
    DISPLAY(count)
    DISPLAY(x)

    What is displayed as a result of executing the code segment?

    1. A6 2
    2. B5 5
    3. C0 20
    4. D5 8
    Show the answer

    B.

    REPEAT UNTIL checks its condition before each pass and stops as soon as it is true. x takes the values 20, 17, 14, 11, 8, 5; the condition x ≤ 5 is first true when x is 5, after 5 passes, so “5 5” is displayed.

    6 2 would be displayed if the loop stopped only when x is less than 5; 0 20 treats REPEAT UNTIL as “repeat while”: since the condition starts false, it skips the loop; 5 8 displays x as it was before the last subtraction.

    एल्गोरिदम और प्रोग्रामिंग

  4. A computer has two processors that can run in parallel. The table shows the time each of 4 processes takes on either processor. The processes are independent of each other, and each process runs on only one processor, from start to finish.

    प्रक्रियाPQRS
    time (seconds)45302520

    What is the minimum amount of time needed to run all 4 processes?

    1. A60 seconds
    2. B65 seconds
    3. C70 seconds
    4. D120 seconds
    Show the answer

    B.

    A parallel solution takes as long as its busiest processor, so split the processes to make the larger of the two totals as small as possible. The best split gives 65 seconds (the total is 120 seconds, which cannot be divided more evenly than that among these processes).

    60 seconds splits the total time exactly in half, which these process times do not allow; 70 seconds gives the processes to the two processors in alternating order instead of choosing the best split; 120 seconds runs every process on one processor, one after another.

    कंप्यूटर सिस्टम और नेटवर्क

  5. A student receives an email that appears to come from her bank. It says her account will be closed unless she clicks a link and enters her username and password on the page that opens. The link goes to a website made to look like the bank’s. Which of the following best describes this?

    1. AKeylogging, which records every key the user presses
    2. BA phishing attack, which tries to trick the user into giving personal information
    3. CA rogue access point, which gives unauthorized access to a secure network
    4. DMultifactor authentication, which asks the user to prove their identity
    Show the answer

    B.

    Phishing tricks a user into giving personal information, such as a login, often through an email that imitates a trusted source.

    Keylogging records keystrokes on the user’s device; a rogue access point is a wireless network device; and multifactor authentication is a security measure, not an attack.

    कंप्यूटिंग का प्रभाव

Take the full AP Computer Science Principles exam →

Questions people ask

Is this AP Computer Science Principles practice exam free?
Yes, with a free Atlas account: your first full practice exam is free, free response graded too. The sample questions on this page need no account. Atlas Premium gives unlimited practice exams, and every exam is new, drawn from a pool of checked questions.
How long is the AP Computer Science Principles exam?
2 h in all: multiple choice, 70 questions in 2 h (100% of the score). The Atlas practice exam keeps the same sections, timing and weights.
How is the practice exam scored?
Multiple choice is marked right or wrong, free response is graded part by part against a rubric, and the sections are weighted as on the real exam to predict a grade from 1 to 5. On Atlas's scale a 5 takes about 72% of the points, a 4 about 58% and a 3 about 44%; the College Board sets the real boundaries each year.
Can I practice one unit at a time?
Yes. Each course has unit tests (up to 15 multiple-choice questions from one unit, timed at the exam's pace), and you can take the multiple choice or the free response on its own.

More: every practice exam · the Computer Science chapters · how Atlas compares