Get matched

AP Computer Science Principles practice questions

Original, AI-authored English practice with worked guidance. Selected topics only; independent teacher review is pending. This is not a complete syllabus, official past-paper collection or predicted exam score. SubjectScout is not affiliated with or endorsed by College Board. SAT practice is not a full adaptive test; AP practice does not simulate an entire exam.

18 original questions across 5 selected topic areas. No account or payment required to practise.

Official AP framework reference (framework only, not a source of copied questions).

0 of 18 checked · 0 correct · 18 shown

Loading saved progress
Question 1 · Big Idea 1: Creative Development · foundation
A team prototypes a school bus tracker. Riders testing it cannot distinguish delayed buses from canceled buses. Which next action best uses an iterative development process?
Question 2 · Big Idea 2: Data · standard
A sensor must assign a different fixed-length binary identifier to each of 70 locations. All bit patterns may be used, with no reserved codes. What is the minimum number of bits per identifier?
Question 3 · Big Idea 2: Data · foundation
An archive must recover every character of a text file exactly after compression and decompression. Which statement is justified?
Question 4 · Big Idea 3: Algorithms and Programming · standard
Use AP CSP pseudocode, where <- denotes assignment. What does this code display? values <- [3, 8, 5, 10] total <- 0 FOR EACH value IN values { IF(value MOD 2 = 0) { total <- total + value } } DISPLAY(total)
Question 5 · Big Idea 3: Algorithms and Programming · challenge
Use AP CSP pseudocode with one-based list indices and <- for assignment. What is displayed? items <- [4, 7, 9] INSERT(items, 2, 6) REMOVE(items, 3) DISPLAY(items[3])
Question 6 · Big Idea 3: Algorithms and Programming · standard
In AP CSP pseudocode, r <- RANDOM(1, 8), followed by IF(r > 5) { DISPLAY("win") }. RANDOM includes both endpoints and makes each integer equally likely. What is the probability of displaying win on one execution?
Question 7 · Big Idea 3: Algorithms and Programming · standard
Several screens in an app compute a delivery charge from distance and parcel mass. The rule changes regularly. Which design best uses procedural abstraction?
Question 8 · Big Idea 4: Computer Systems and Networks · standard
A network has bidirectional links A-B, B-D, A-C, and C-D, and no others. If link B-D fails while every other link and node works, which statement about sending data from A to D is correct?
Question 9 · Big Idea 5: Impact of Computing · challenge
A city trains a sidewalk-repair ranking system using reports submitted only through a smartphone app. Areas with fewer smartphone users receive low priority. Which investigation most directly addresses a possible source of bias?
Question 10 · Big Idea 5: Impact of Computing · foundation
A student receives an unexpected message linking to a look-alike school login page and demanding a password. Which response best reduces phishing risk?
Question 11 · Big Idea 3: Algorithms and Programming · standard
An account may proceed only when neither suspended nor expired is true. Both variables are Boolean. Which AP CSP expression is equivalent to NOT(suspended OR expired) for every combination of inputs?
Question 12 · Big Idea 3: Algorithms and Programming · challenge
Use AP CSP pseudocode, with <- for assignment. What is displayed? PROCEDURE score(n) { IF(n < 4) { RETURN(n + 2) } RETURN(2 * n) } a <- score(3) b <- score(a) DISPLAY(b - a)
Question 13 · Big Idea 3: Algorithms and Programming · standard
Binary search is applied to the sorted list [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30]. Each iteration checks the middle value of the remaining candidate interval and discards that value and the impossible half if it is not the target. How many middle-value checks are needed to find 22?
Question 14 · Big Idea 3: Algorithms and Programming · foundation
A decision problem is known to be undecidable. A developer correctly solves several particular instances. Which conclusion follows?
Question 15 · Big Idea 3: Algorithms and Programming · standard
Two algorithms solve the same problem. Their operation counts are exactly n^2 and 2^n for an input of size n. In the AP CSP classification, which statement about growth for large n is correct?
Question 16 · Big Idea 4: Computer Systems and Networks · challenge
Task A takes 6 seconds and must finish before tasks B and C can start. B takes 4 seconds and C takes 8 seconds; B and C are independent. Each task runs on one processor and cannot be subdivided. Two identical processors are available with no overhead. What is the minimum completion time and speedup relative to running all three tasks sequentially?
Question 17 · Big Idea 5: Impact of Computing · standard
A public travel dataset removes names but retains exact home coordinates and detailed daily routes. Which privacy assessment is most justified?
Question 18 · Big Idea 3: Algorithms and Programming · foundation
A traffic simulation assumes all drivers instantly obey a new speed limit and omits weather. It predicts fewer collisions. Which interpretation is best supported?

All Advanced Placement subjects