Home › Certifications › AP Computer Science Principles
150 multiple-choice questions and 200 flashcards, written to the College Board AP Computer Science Principles Course and Exam Description blueprint. Every question carries a full rationale.
Study AP Computer Science Principles in CoStudy →
College Board AP Computer Science Principles Course and Exam Description — 5 Big Ideas: Creative Development; Data; Algorithms & Programming; Computing Systems & Networks; Impact of Computing
CoStudy's AP Computer Science Principles bank holds 350 items. Every multiple-choice question carries a written rationale explaining why the correct answer is correct and why each distractor is tempting but wrong.
A sample of 12 multiple-choice questions from the bank, with the full rationale shown.
Parallel computing differs from sequential by:
Answer: C — Executing multiple operations simultaneously on different processors/cores — can dramatically reduce runtime for parallelizable problems
Parallel: multiple cores, GPUs, distributed clusters. Sequential: one operation at a time. Not all problems parallelize well (Amdahl's law). Examples: image rendering, neural network training, scientific simulations, database queries. AP CSP tests speedup concept and limitations.
A developer adds detailed comments only after the program is complete. The MOST LIKELY downside of waiting is:
Answer: A — The intent behind each design decision may be forgotten or misremembered, making comments less accurate
A) Memory fades; comments written later are often less accurate. B/C/D) Comments do not affect parsing, runtime, or syntax.
Pseudocode: a ← TRUE; b ← FALSE; c ← (a AND b) OR (NOT b). What is c?
Answer: A — TRUE
A) (TRUE AND FALSE) OR (NOT FALSE) = FALSE OR TRUE = TRUE. B) Misses NOT. C/D) Not options in Boolean logic.
An undecidable problem is one for which:
Answer: D — No algorithm can be written that produces a correct yes/no answer for ALL possible inputs
D) Definition: no general decision algorithm exists. A) That's intractable but decidable. B/C) Off topic.
Machine learning models are trained by:
Answer: B — Exposure to training data, adjusting internal parameters to minimize error on the training set — generalizing to unseen data with appropriate regularization
ML paradigm: data + algorithm → model. Training: optimize parameters (gradient descent) to fit training data. Generalization: performance on UNSEEN data is what matters. Overfitting: model memorizes training data, fails on new data. Solutions: cross-validation, regularization, more data, simpler models.
A digital image is represented by:
Answer: C — A grid of pixels, each storing color information (typically RGB values 0-255 for red, green, blue → 24-bit color)
Raster image = pixel grid. RGB: 256³ ≈ 16.7 million colors. File size ≈ width × height × 3 bytes (uncompressed). Vector graphics (SVG): mathematical descriptions of shapes (lines, curves) — scalable without quality loss. JPG/PNG = raster; SVG/AI = vector.
An algorithm's RUNTIME efficiency typically scales:
Answer: D — Different ways depending on the algorithm — constant, logarithmic, linear, quadratic, exponential — characterized in 'Big-O' notation (AP CSP uses 'reasonable' vs 'unreasonable' time)
AP CSP simplifies algorithmic complexity to 'reasonable time' (polynomial: linear, quadratic) vs 'unreasonable' (exponential — TSP brute force, password cracking). Many problems become infeasible quickly. Heuristic approaches (approximations, ML) used for intractable problems.
Linear search through an unsorted list of n elements has WORST-CASE time complexity:
Answer: C — O(n) — must check up to n elements
Linear (sequential) search: check each element in turn. Worst case: target at end or not present, examines all n items: O(n). Average: n/2 = O(n). Best case: target at start: O(1). Binary search on SORTED list: O(log n).
A phishing attack typically:
Answer: C — Uses deceptive messages, emails, or websites to trick users into revealing credentials or installing malware
C) Standard phishing definition. A/B/D) Other attack types.
HTTPS differs from HTTP in that HTTPS:
Answer: D — Encrypts the connection between client and server using TLS, protecting confidentiality and integrity in transit
D) HTTPS = HTTP over TLS. A/B/C) Each is unrelated to what HTTPS provides.
The decimal number 10 in binary is:
Answer: A — 1010
10 = 8 + 2 = 2³ + 2¹ = 1010₂. To convert decimal to binary: repeatedly divide by 2, collect remainders bottom-up. (B) 1100 = 12. (C) 1001 = 9. (D) 1110 = 14. AP CSP exam tests small-number conversions.
A 'list' or 'array' is a data structure that stores:
Answer: D — An ordered collection of items, accessed by index (typically zero-based) — supports operations like get, set, append, insert, remove
Arrays/lists: ordered collections. Indexed access O(1). Search O(n). Insertion at end O(1) amortized; insertion in middle O(n). Other data structures: hash maps (O(1) lookup by key), trees (O(log n) ops on balanced trees), graphs (relationship modeling).
6 sample cards from the 200 in the bank.
What is machine learning?
Subset of AI: systems that learn from data rather than being explicitly programmed.
Difference between Internet and World Wide Web?
Internet: physical infrastructure of networks. WWW: collection of documents and resources accessed over the Internet (HTTP, websites).
What was a positive impact of GPS?
Navigation, emergency services, agriculture (precision farming), wildlife tracking, scientific research.
What is the development cycle in CS?
Investigate, design, prototype, test, refine, deploy. Iterative — feedback loops at each step.
What is assignment?
Setting a variable's value: x ← 5 (or x = 5 in many languages).
What is a sandbox in programming?
Isolated environment where code runs without affecting real systems. Used for testing untrusted code.
These samples are a small slice. The full bank runs flashcards, multiple choice and timed mock exams with per-chapter progress tracking, on the web and in the iOS app.
Open AP Computer Science Principles →
The AP Computer Science Principles bank holds 350 items: 150 multiple-choice questions, 200 flashcards. 18 of them are on this page to read free, with no signup.
Yes. Every multiple-choice item carries a written rationale that states the controlling principle behind the correct answer and then addresses each wrong option in turn — why it tempts and precisely where it fails. Knowing why the plausible answer was wrong is worth more than knowing which letter was right.
College Board AP Computer Science Principles Course and Exam Description — 5 Big Ideas: Creative Development; Data; Algorithms & Programming; Computing Systems & Networks; Impact of Computing
The samples on this page are free to read in full, rationales included, with no account. The complete 350-item bank, the timed mock exams and per-chapter progress tracking are part of CoStudy on the web and in the iOS app.
Last reviewed 2026-08-22. Banks are written against the certifying body's published exam outline and re-checked when that outline changes — exams get renumbered, retired and reweighted, and a bank written to a superseded outline teaches the wrong proportions. Figures that are re-indexed annually are deliberately not asserted as rules; the questions test the governing principle instead.
This bank is written against the College Board's published exam material. Check the AP Course and Exam Descriptions for the current outline, fees and eligibility rules — those change, and the certifying body is the only authority on them. CoStudy is not affiliated with the College Board.