Back to Review Hub

Mixed MCQ Practice 2

A second set of 20 questions from the College Board's 2021 AP CSP Practice Exam — no overlap with Practice Set 1

How to Use This Practice Set

  • 20 different questions from the 2021 AP CSP Practice Exam — none of these appear in Practice Set 1. Mixed across Big Ideas just like the real exam.
  • Each question has a topic tag. After finishing, look for patterns in which topics gave 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. The real exam gives you about 1m 43s per question.
Attempted: 0 / 20
Correct: 0
Accuracy:
Question 1 Data 2021 Practice Exam · Q9

Which of the following best explains how an analog audio signal is typically represented by a computer?

Question 2 Impacts 2021 Practice Exam · Q13

Which of the following is NOT a benefit of collaborating to develop a computing innovation?

Question 3 Algorithms 2021 Practice Exam · Q26

Which of the following best describes a challenge involved in using a parallel computing solution?

Question 4 Algorithms 2021 Practice Exam · Q33

A company delivers packages by truck and wants to minimize the length of each driver's route to n delivery locations. Two algorithms are being considered:

  • Algorithm I: Generate all possible routes, compute their lengths, and select the shortest. Does not run in reasonable time.
  • Algorithm II: Starting from an arbitrary location, find the nearest unvisited location. Continue until all locations are visited. Does not guarantee the shortest route. Runs in time proportional to n2.

Which of the following best categorizes Algorithm II?

Question 5 Data 2021 Practice Exam · Q35

A city maintains a database of all traffic tickets issued over the past ten years. Tickets are divided into moving violations and nonmoving violations. The data recorded for each ticket includes only:

  • The month and year the ticket was issued
  • The category of the ticket

Which question CANNOT be answered using only the information in the database?

Question 6 Impacts 2021 Practice Exam · Q36

Individuals sometimes attempt to remove personal information from the Internet. Which of the following is the LEAST likely reason the personal information is hard to remove?

Question 7 Algorithms 2021 Practice Exam · Q38

A scientist wants to investigate several problems. In which situation is using a simulation LEAST suitable?

Question 8 Data & Binary 2021 Practice Exam · Q39

A store uses binary numbers to assign a unique binary sequence to each item in its inventory. What is the minimum number of bits required for each binary sequence if the store has between 75 and 100 items in its inventory?

Question 9 Impacts 2021 Practice Exam · Q40

A state government is attempting to reduce the digital divide. Which of the following activities has the greatest potential to contribute to the digital divide rather than reducing it?

Question 10 Data & Binary 2021 Practice Exam · Q44

A program developed for a Web store represents customer account balances using a format that approximates real numbers. While testing, a developer discovers that some values appear mathematically imprecise. Which is the most likely cause of the imprecision?

Question 11 Pseudocode 2021 Practice Exam · Q47

A spreadsheet stores restaurant data. In column B, the price range is "lo" (under $10), "med" ($11–$30), or "hi" (over $30). In column D, the average customer rating is a decimal.

A student wants to count restaurants whose price range is $30 or less and whose average customer rating is at least 4.0. For a given row, prcRange contains the price range as a string and avgRating the average rating as a decimal.

Which of the following expressions evaluates to true if the restaurant should be counted and false otherwise?

Question 12 Cybersecurity 2021 Practice Exam · Q48

Which of the following is an example of an attack using a rogue access point?

Question 13 Algorithms 2021 Practice Exam · Q49

Which of the following best explains the ability to solve problems algorithmically?

Question 14 Cybersecurity 2021 Practice Exam · Q50

Which of the following best explains how symmetric encryption algorithms are typically used?

Question 15 Impacts 2021 Practice Exam · Q51

Which of the following research proposals is most likely to be successful as a citizen science project?

Question 16 Algorithms 2021 Practice Exam · Q52

A sorted list of numbers contains 128 elements. Which of the following is closest to the maximum number of list elements that can be examined when performing a binary search for a value in the list?

Question 17 Pseudocode 2021 Practice Exam · Q53

A list of numbers has n elements, indexed from 1 to n. The algorithm below should display true if target appears in the list more than once, and false otherwise. It uses variables position and count. Steps 4 and 5 are missing.

Step 1: Set count to 0 and position to 1.
Step 2: IF the value at index position equals target,
        increase count by 1.
Step 3: Increase position by 1.
Step 4: (missing)
Step 5: (missing)

Which of the following correctly replaces steps 4 and 5?

Question 18 Pseudocode 2021 Practice Exam · Q55

A code segment should transform the list utensils so the last element moves to the beginning.

For example, if utensils initially contains ["fork", "spoon", "tongs", "spatula", "whisk"], it should contain ["whisk", "fork", "spoon", "tongs", "spatula"] afterward. Which code segment transforms the list as intended?

Question 19 Algorithms 2021 Practice Exam · Q57

A computer has two identical processors that run in parallel. The table shows execution times of four processes on a single processor. The processes are independent.

ProcessTime on Either Processor
P30 seconds
Q10 seconds
R20 seconds
S15 seconds

Which parallel computing solution would minimize the time to execute all four processes?

Question 20 Internet & Apps 2021 Practice Exam · Q58

RunRoutr is a fitness app that creates suggested running routes. Each user has a personal profile and a contact list of friends. The app uses the smartphone's GPS to track location, speed, and distance. Users are considered compatible if they're on each other's contact lists or run at similar speeds. At the start of a run, users indicate the distance they want to run, and the app suggests a route from their current location.

Which of the following data must be collected from a user's smartphone in order for RunRoutr to suggest a running route?

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. None of these questions appear in Practice Set 1.

Back to Review Hub