What does RETURN do to the rest of a procedure?Skips it The value goes back at once.
A procedure with DISPLAY and no RETURN gives backNo value It only shows something.
After a procedure call, the program goes onRight after the call
Procedural abstractionUse it by what it does, not how
ModularityA program split into subprograms
Why give a procedure parameters?One procedure fits many inputs
Data abstraction with a listOne name for many values numbers[i], not number1, number2, number3.
String concatenation: "data" with "base""database" Joined end to end.
AlgorithmA finite set of steps for a task Built of sequencing, selection and iteration.
Sequencing, selection, iterationIn order; by a condition; repeated
LibraryProcedures ready for new programs
APITells how to use a library’s procedures
SimulationA simplified model of something real Good when the real thing is too big, slow or dangerous.
How can a simulation be biased?By what it leaves out or puts in
What makes a simulation vary like real life?Random numbers
Reasonable timePolynomial or faster Constant, linear, square and cube are all reasonable.
Unreasonable timeExponential or factorial
Steps 2, 4, 8, 16 for sizes 1, 2, 3, 4Unreasonable: exponential It doubles with each item.
Steps 1, 4, 9, 16 for sizes 1, 2, 3, 4Reasonable: n squared
HeuristicGood enough, not always the best For when the sure way is impractical.
Decision problem; optimization problemYes or no; the best of many Is there a path? Which path is shortest?
Undecidable problemNo algorithm answers every case Some cases may still be solved.
Robot: two ROTATE_LEFT() in a rowIt faces the other way 90 degrees each, in the same square.
Robot: MOVE_FORWARD() into a wallThe robot stays; the program ends Moving off the grid does the same.
Robot: CAN_MOVE(left)true if the square at its left is open Also right, forward and backward.
Systems and Networks
Numbered statements of this Big Idea in the College Board’s Course and Exam Description, with RFC 791, 9293 and 768, read November 30, 2026.
Computing deviceA thing that can run a program Computer, tablet, server, router, smart sensor.
Computing systemDevices and programs with one purpose A network is one kind.
PathDevices linked from sender to receiver
RoutingFinding a path to the receiver
Is the route on the Internet fixed beforehand?No, routing is usually dynamic
BandwidthMost data sent in a fixed time In bits per second.
Show all 31
8 megabits per second: how long for 40 megabits?5 seconds 40 / 8.
ProtocolAgreed rules for how a system behaves
Why are Internet protocols open?Anyone can connect new devices They belong to no company.
Internet; World Wide WebThe network; linked pages on it
HTTPProtocol of the World Wide Web
IPAddresses packets and gets them across Internet Protocol.
TCPResends lost packets, puts them in order Transmission Control Protocol.
UDPSends with no promise of delivery User Datagram Protocol: a minimum of mechanism.
PacketA piece of data with routing metadata The metadata also help put it back together.
In what order do packets arrive?Any, and some not at all
ScalabilityCan grow to meet new demand The Internet was made for it.
Fault-tolerantGoes on working when parts fail
RedundancySpare parts or paths in case one fails It costs more and makes the system safer.
Links A–B, B–C, C–D, D–A: does one broken link cut B off?No Two paths join any two devices.
Links A–B and B–C only: which device must not fail?B A and C have no other path.
Sequential computingOne step after another Time: all the steps added up.
Parallel computingSome steps at the same time
Distributed computingMany devices run one program
Time of a parallel solutionSequential part + longest parallel part
Tasks of 30, 50 and 40 s, all parallel, on 3 processors50 s The longest one. In sequence: 120 s.
10 s in sequence, then 60 s and 40 s in parallel70 s 10 + 60.
Tasks of 20, 30, 40, 50 s on 2 processors: best time70 s 50 + 20 and 40 + 30.
SpeedupSequential time / parallel time
120 s in sequence, 40 s in parallel: speedup3 120 / 40.
What limits the speedup?The part that must run in sequence More processors help less and less.
Impact of Computing
Numbered statements of this Big Idea in the College Board’s Course and Exam Description, read November 30, 2026.
Can one effect be both good and harmful?Yes, even to the same person
What was the Web first meant for?Scientists exchanging information An impact beyond its first purpose.
Targeted advertising: help and harmHelps businesses; can be misused
Can a programmer foresee every use?No But should try to think of harmful ones.
Digital divideUnequal access to devices and Internet By income, place or group of people.
Who can change the digital divide?People, organizations, governments
Show all 51
Two ways bias gets into softwareIn the algorithm, or in its data
At which level can bias get in?At every level of development
Citizen scienceResearch with data from the public Many are not scientists; they use their own devices.
CrowdsourcingInput from many people online Money for a cause, reviews, ideas.
Who owns what is made on a computer?Its creator or an organization Intellectual property.
PlagiarismOthers’ work shown as your own Without permission. It may have legal consequences.
Creative CommonsA license to share an author’s work The author chooses the terms.
Open sourceCode free to use, change and share
Open accessResearch online without restrictions
You use someone’s free image: what is still due?Cite it Material of others is always cited.
PIIData that identifies a person Personally identifiable information.
Examples of PIIAge, race, phone, health, money data Also a Social Security number and biometric data.
Pieces of data about you put togetherCan tell more than each alone Location, cookies and browsing history.
Information once placed onlineIs hard to delete
What can PII be used for by criminals?Stalking and identity theft
AuthenticationChecks who may get in Strong passwords, multifactor authentication.
Strong passwordEasy to remember, hard to guess For someone who knows you, too.
Multifactor authenticationAt least two kinds of evidence Something you know, have or are.
Password + code sent to your phone: which factors?Know and have Knowledge and possession.
Password + PIN: two factors?No, both are something you know
Fingerprint: which factor?Something you are Inherence.
Encryption; decryptionEncode data; decode it
Symmetric key encryptionOne key locks and unlocks Both sides must have it.
Public key encryptionPublic key locks, private key unlocks
Ana writes to Ben with public key encryption: whose key?Ben’s public key Only his private key opens it.
Certificate authorityVouches for who owns a key It issues digital certificates.
Computer virusMalicious program that copies itself It often rides on a legitimate program.
MalwareSoftware meant to damage or take over
Why install software updates?They fix flaws attackers use
App permissionsWhat a program may collect Users can review and limit them.
PhishingTricks you into giving information Often an email that looks real.
KeyloggingRecords every key you press To get at passwords.
Rogue access pointWireless point that lets intruders in Data on public networks can be read there.
Can an email from a friend be dangerous?Yes, if their account was taken over
Free downloads from unknown sites: the riskMalware
Machine learning and data mining: the harm namedUsed to discriminate against groups They also brought advances in medicine and science.
The digital divide: three issues it raisesEquity, access and influence
A program shared fast with a great many usersEffects its maker did not plan And may not control.
Search history: kept by whom, used for what?Search engines; suggestions and ads
What a program can record of your travelsWhere, how you got there, how long
PII online: what good can it do you?Easier buying, better experience
Devices that watch all the time: the concernThey collect and analyze your data
Software for downloading films and songs: the concernRights of those who own them A legal and ethical issue.
How can a link be dangerous?A malicious one can look harmless On a page or in an email.
Your post on social media: who may see it later?Others, a future employer too Messages can be passed on.
How this list was compiled: Cards written for this site in our own words, sorted by the five Big Ideas of the College Board's AP Computer Science Principles Course and Exam Description (apcentral.collegeboard.org, 2023, in force for the exam of May 2027), whose numbered statements and Exam Reference Sheet each card follows. What IP, TCP and UDP do was read in RFC 791, RFC 9293 and RFC 768 (rfc-editor.org), Creative Commons at creativecommons.org. All read November 30, 2026. Every answer that can be worked out was worked out by a script. No sample question, released question or AP Classroom item was used.
This AP Computer Science Principles study guide is 238 cards in our own words: exam pseudocode to work out, and the terms of all five Big Ideas. It is unofficial and not affiliated with the College Board.
Read the full guide
Cards in the exam’s shares
Algorithms and Programming is 30–35% of the multiple choice, so it has 82 cards. Impact of Computing (21–26%) has 51, Data (17–22%) 47, Computer Systems and Networks (11–15%) 31, Creative Development (10–13%) 27.
Read the code the exam’s way
The exam’s own language differs from Python and Java: lists start at 1, = compares, ← assigns, and a list assigned to another name is a copy. As in Python, / keeps decimals.
Print it, or make a PDF
Pick a Big Idea under the card, or All. Print makes double-sided cards; the fold-over print suits a one-sided printer.
For REPEAT UNTIL, ask when it stops, not how long it goes on: it is the reverse of while.
Questions and answers
Is there an AP Computer Science Principles study guide PDF?
You make it here: choose a Big Idea, press Print and pick Save as PDF as the printer. Data is 47 cards on 4 sheets; All is 238 on 20.
How many questions are on the AP CSP exam?
70 multiple-choice questions in 120 minutes, 70% of the score; eight of them want two answers. The rest is the Create performance task with two written-response questions in 60 minutes. The next is on Friday, May 14, 2027.
Do you need to know a programming language for AP CSP?
Not for the multiple choice: its code is the pseudocode of the Exam Reference Sheet, which you have with you. For the Create task no language is set.
Is AP CSP changing?
Yes. The College Board has announced a redesigned course for the 2027–28 school year. These cards follow the present description, for the exam of May 2027.