Back to Review Hub

Mixed MCQ Practice

20 curated questions from the College Board's 2021 AP CSP Practice Exam

How to Use This Practice Set

  • 20 questions sampled from the released 2021 AP CSP Practice Exam, mixed across Big Ideas just like the real exam.
  • Each question has a topic tag — pay attention to which topics are giving you trouble.
  • Click an answer to get instant feedback with the explanation from the official College Board answer key.
  • The score tracker at the top updates as you go. There's no time limit on this page; the real exam gives you about 1m 43s per question.
Attempted: 0 / 20
Correct: 0
Accuracy:
Question 1 Cybersecurity 2021 Practice Exam · Q1

Which of the following is an example of a phishing attack?

Question 2 Pseudocode 2021 Practice Exam · Q2

To be eligible for a particular ride at an amusement park, a person must be at least 12 years old and must be between 50 and 80 inches tall, inclusive. Let age represent a person's age in years, and height the person's height in inches. Which expression evaluates to true if and only if the person is eligible for the ride?

Question 3 Internet 2021 Practice Exam · Q4

Which of the following best explains the relationship between the Internet and the World Wide Web?

Question 4 Cybersecurity 2021 Practice Exam · Q6

Which of the following best exemplifies the use of multifactor authentication to protect an online banking system?

Question 5 Internet 2021 Practice Exam · Q8

Which of the following best describes a direct benefit in using redundant routing on the Internet?

Question 6 Data & Binary 2021 Practice Exam · Q10

The player controls in a video game are represented by 5-bit binary numbers, as shown:

ControlBinary
Jump11000
Run11001
Pause11011
Reset11111

What is the decimal value for the jump control?

Question 7 Pseudocode 2021 Practice Exam · Q14

A list of numbers is "increasing" if each value after the first is ≥ the preceding value. The procedure below is intended to return true if numberList is increasing and false otherwise. Assume numberList contains at least two elements. Which change is needed for the program to work as intended?

Line 1: PROCEDURE isIncreasing(numberList)
Line 2: {
Line 3:     count ← 2
Line 4:     REPEAT UNTIL(count > LENGTH(numberList))
Line 5:     {
Line 6:         IF(numberList[count] < numberList[count - 1])
Line 7:         {
Line 8:             RETURN(true)
Line 9:         }
Line 10:        count ← count + 1
Line 11:    }
Line 12:    RETURN(false)
Line 13: }
Question 8 Impacts & Ethics 2021 Practice Exam · Q16

The author of an e-book publishes the e-book using a no-rights-reserved Creative Commons license. Which of the following best explains the consequences of publishing the book with this type of license?

Question 9 Cybersecurity 2021 Practice Exam · Q19

Which of the following best explains how devices and information can be susceptible to unauthorized access if weak passwords are used?

Question 10 Internet 2021 Practice Exam · Q20

A local router is configured to limit the bandwidth of guest users connecting to the Internet. Which of the following best explains the result of this configuration as compared to a configuration in which the router does not limit the bandwidth?

Question 11 Data & Binary 2021 Practice Exam · Q21

A video-streaming website keeps a count of times each video has been played. At one time the most popular video's count was about two million. Later, the same video displayed a seven-digit negative number while other videos' counts displayed correctly. What is the most likely explanation?

Question 12 Internet 2021 Practice Exam · Q23

Which of the following statements about the Internet is true?

Question 13 Data & Compression 2021 Practice Exam · Q24

In which of the following situations would it be most appropriate to choose lossy compression over lossless compression?

Question 14 Impacts & Bias 2021 Practice Exam · Q27

A social-media app is updating its algorithm to add a new feature. Which of the following strategies is LEAST likely to introduce bias into the application?

Question 15 Internet 2021 Practice Exam · Q30

Which of the following best explains how data is transmitted on the Internet?

Question 16 Data & Binary 2021 Practice Exam · Q31

A binary number is transformed by appending three 0s to the end. For example, 11101 becomes 11101000. Which best describes the relationship between the transformed number and the original?

Question 17 Cybersecurity 2021 Practice Exam · Q32

Which of the following is a true statement about the use of public key encryption in transmitting messages?

Question 18 Pseudocode 2021 Practice Exam · Q34

Result X is expected 25% of the time and result Y 75%. The code below is intended to simulate 100 trials, but it reports "X occurred 24 times and Y occurred 70 times" — only 94 trials counted. Which change ensures a correct simulation?

Line 1: xCount ← 0
Line 2: yCount ← 0
Line 3: REPEAT 100 TIMES
Line 4: {
Line 5:     IF(RANDOM(1, 4) = 1)
Line 6:     {
Line 7:         xCount ← xCount + 1
Line 8:     }
Line 9:     IF(RANDOM(1, 4) > 1)
Line 10:    {
Line 11:        yCount ← yCount + 1
Line 12:    }
Line 13: }
Question 19 Impacts 2021 Practice Exam · Q41

An online gaming company is introducing initiatives to encourage respectful communication. Which of the following describes a solution that uses crowdsourcing?

Question 20 Cybersecurity 2021 Practice Exam · Q43

Which of the following best exemplifies the use of keylogging to gain unauthorized access to a computer system?

Source & More Practice

Every question on this page is reproduced from the College Board's official 2021 AP Computer Science Principles Practice Exam, and the explanations come directly from the official answer key.

Back to Review Hub