AP Computer Science Principles — Practice Questions flashcards
6 of 50 questions free to study here · 5 topics · the whole deck is built into Willys
Multiple-choice practice questions, one best answer each, on program design and testing, binary and compression, pseudocode tracing, algorithms, the Internet, parallel computing and impacts.
Practice deck · part of AP Computer Science Principles · written against: College Board AP Computer Science Principles Course and Exam Description (five big ideas). Updated 2026-10-10.
Study the free sample
6 questions from the deck as they are. Flip, rate yourself, filter by topic; your progress stays in this browser.
Tap the card or press Space to flip
The 6 sample questions as a list
-
A team is designing an app for a public library and wants to reduce the chance that the design overlooks the needs of some patrons. Which practice helps most?
A) Gathering input from a diverse group of team members and users
B) Basing the requirements on the developers' own reading habits
C) Assigning the whole design to the most experienced programmer
D) Waiting to collect user feedback until the program is finishedA) Gathering input from a diverse group of team members and usersCreative Development › Collaboration and Program Design
Diverse perspectives help catch needs the original authors missed and reduce bias in the design. Leaving the design to one expert, however skilled, narrows the viewpoints that shape it. -
A developer builds a game one feature at a time, making sure the scoring module works correctly before starting on the level module. Which development approach is this?
A) Event-driven programming
B) Incremental development
C) Pair programming
D) Iterative developmentB) Incremental developmentCreative Development › Collaboration and Program Design
Incremental development builds a program in small pieces, confirming each works before adding the next. Iterative development instead repeats design, test and refine cycles on the program as a whole based on feedback. -
How many different values can be represented with 7 bits?
A) 256
B) 64
C) 128
D) 127C) 128Data › Binary Numbers and Overflow
Each bit doubles the count, so 7 bits give 2 to the 7th power, or 128, values. The largest unsigned value is 127, because counting starts at 0. -
What are the values of
aandbafter these statements run in order:a ← 4,b ← 7,a ← a + b,b ← a - b?
A)ais 7 andbis 4
B)ais 11 andbis 4
C)ais 4 andbis 7
D)ais 11 andbis 7B)Algorithms and Programming › Variables Lists and Proceduresais 11 andbis 4
Aftera ← a + b,aholds 11; thenb ← a - bcomputes 11 − 7 = 4.akeeps the value 11, so the two values are not simply swapped. -
A large file is sent across the Internet as packets. Which statement is accurate?
A) Packets may take different routes and arrive out of order
B) Routers merge the packets into one large packet along the way
C) All packets must follow the same route in the same order
D) Packets carry only data and no source or destination informationA) Packets may take different routes and arrive out of orderComputer Systems and Networks › The Internet and Routing
Each packet carries metadata such as its source, destination and position, so packets can travel by different routes and be reassembled in order at the destination. -
A hiring program trained on a company's past hiring decisions ranks applicants from some groups lower, though no programmer wrote any rule about groups. What is the most likely cause?
A) The applicant files were stored with lossy compression
B) The program ran on parallel rather than sequential hardware
C) The developers used an iterative development process
D) The training data reflected past human biasD) The training data reflected past human biasImpact of Computing › Benefits Harms and Bias
An algorithm trained on biased past decisions can reflect and amplify existing human bias, even without any explicit rule. How the files were stored or the hardware it ran on does not create this pattern.
Unlock the whole deck
You are studying a free 6-question sample. All 50 questions of AP Computer Science Principles — Practice Questions, the other 1 AP Computer Science Principles deck, and spaced-repetition scheduling are built into Willys. 14-day free trial, then $14.99 a year.
In Willys, tap Exam Library at the top of your Decks (or Browse Exam Library… under the + button), find the exam on its shelf or by search, tick it and tap Add.
More AP Computer Science Principles decks
← All AP Computer Science Principles decks, with the study guide and topic outline.
About these cards
Review status: Second-reader reviewed, with corrections applied.
Checked against:
- Topic outline and pseudocode conventions follow the College Board AP Computer Science Principles Course and Exam Description in effect as of the 2026–27 school year, Big Ideas 1–5, and its exam reference sheet (the AP name is used nominatively; no course or exam text reproduced).
- Binary conversions, pseudocode traces and parallel-timing calculations were checked by running the equivalent logic in Python.
These are independent study notes written for Willys. They are not official exam material, may contain mistakes, and are no substitute for your course, your teacher or the exam owner's own publications. Found an error? Tell us — corrections ship as a new version of the deck.
AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this product.
Use of these pages is covered by our Terms of Use.