AP Courses AP Biology AP Biology Units AP Human Geography AP HUG Units AP Computer Science Principles AP CSP Units
Practice Daily Practice Practice by Course Practice by Topic Practice Tests
AP Exam Resources AP Exam Dates Registration Fees Scores & Credit What to Bring
Start Practicing → Login Register →

AP Computer Science Principles · Unit 2 · Data

AP CSP Unit 2 Cheat Sheet: Data

Use this AP CSP Unit 2 cheat sheet when you need a fast final review before a quiz, practice test, or full Unit 2 practice set. It summarizes the highest-yield Data unit ideas: binary numbers, bits and bytes, binary-to-decimal conversion, compression ratios, lossless vs lossy compression, metadata, big data, privacy, PII, and data bias.

This page is not meant to replace the full Unit 2 Review or Notes pages. Use it after you have learned the concepts, then take the quiz or full practice set to check whether you can apply them.

Updated May 21, 2026Reviewed by APScore5 Editorial Team

Step 1Unit 2 hub14-step journey map Step 2ReviewBig ideas and exam weight You are hereAP CSP Unit 2 Cheat SheetOpen related concept guides next Step 450 MCQsFull practice with weak-area links
Direct answer

What is on the AP CSP Unit 2 cheat sheet?

This AP CSP Unit 2 cheat sheet covers the fast facts students need before practice: binary place values, bit and byte conversions, binary-to-decimal steps, compression ratios, lossless vs lossy compression, metadata clues, big data benefits, privacy risks, PII, re-identification, and data bias.

In one sentence: AP CSP Unit 2 is about how computers represent, reduce, organize, analyze, and responsibly use data.

How to use this AP CSP Unit 2 cheat sheet

Use this cheat sheet as a recall tool, not a first lesson. First, scan each cheat sheet block. Second, cover the page and try to explain the rule from memory. Third, use the 5-minute checklist to decide whether you are ready for the Unit 2 quiz or full practice questions.

If a row feels confusing, do not stay on this page. Open the linked concept guide, review that topic, then return to the cheat sheet.

5-minute AP CSP Unit 2 review path

MinuteWhat to ReviewGoal
0–1Binary, bits, and bytesRemember place values and 8 bits = 1 byte
1–2Binary to decimalAdd only the place values under 1s
2–3CompressionSeparate ratio, file size, and quality
3–4Metadata and privacyIdentify what data reveals
4–5Big data and biasName one benefit and one risk

After the 5-minute review, close the cheat sheet and take the Unit 2 quiz without looking. Your missed questions show which concept page to reopen.

Cheat Sheet 1: Binary, bits, and bytes

Must remember

ConceptCheat Sheet Rule
BitOne binary digit: 0 or 1
Byte8 bits
BinaryBase-2 number system
DecimalBase-10 number system
Digital dataText, images, audio, video, and files can be represented with bits

AP exam shortcut

If the question says “bit,” think one 0 or 1. If it says “byte,” remember 8 bits.

Common trap

Mbps and MB are not the same. Lowercase b usually means bits. Uppercase B usually means bytes.

Cheat Sheet 2: Binary to decimal conversion

Must remember

Start from the right. Write place values as powers of 2: 1, 2, 4, 8, 16, 32, 64, 128. Add only the place values where the binary digit is 1.

BinaryWorkDecimal
1014 + 15
10108 + 210
10118 + 2 + 111
11008 + 412
11118 + 4 + 2 + 115
100001616

AP exam shortcut

A binary number ending in 1 is odd. A binary number ending in 0 is even.

Common trap

Binary 101 is not one hundred one. It equals decimal 5.

Cheat Sheet 3: Data compression

Must remember

ConceptCheat Sheet Rule
CompressionReduces file size
Main benefitLess storage and faster transfer
Compression ratioOriginal size ÷ compressed size
Percent savedAmount reduced ÷ original size × 100
Main tradeoffSmaller file size may reduce quality or detail
OriginalCompressedRatioPercent Saved
10 MB5 MB2:150%
12 MB3 MB4:175%
100 MB20 MB5:180%

AP exam shortcut

If the question asks for ratio, answer original : compressed. If it asks for percent saved, calculate the reduction compared with the original.

Common trap

Do not answer 75% when the question asks for 4:1. Ratio and percent saved are different.

Cheat Sheet 4: Lossless vs lossy compression

Must remember

FeatureLosslessLossy
Data removed?NoYes
Exact reconstruction?YesNo
Best forText, code, legal files, medical filesPhotos, audio, video, streaming
Main benefitPreserves originalSmaller files
Main tradeoffMay not shrink as muchMay lose quality/detail

AP exam shortcut

Does the file need to be restored exactly? Yes → lossless. No, and smaller size matters → lossy may be better.

Common trap

Lossy compression is not automatically bad. It is often the best choice for photos, music, and video when smaller files matter.

Cheat Sheet 5: Metadata

Must remember

ConceptCheat Sheet Rule
MetadataData about data
File metadataFile size, type, author, creation date
Photo metadataGPS location, timestamp, camera model
Email metadataSender, receiver, subject, timestamp
Privacy riskMetadata can reveal hidden details

AP exam shortcut

Ask: Is this the content itself, or a detail describing the content? If it describes the content, it is metadata.

Common trap

Compression does not automatically remove metadata. Removing EXIF or location metadata is a separate privacy step.

Cheat Sheet 6: Big data, privacy, and data bias

Must remember

ConceptCheat Sheet Rule
Big dataLarge, complex, fast, or varied datasets
PIIData that can identify a person
Re-identificationAnonymous-looking data linked back to a person
Data biasIncomplete or unrepresentative data creates unfair outcomes
Strong AP answerBenefit + risk + specific example

PII examples: Name, email, phone number, address, student ID, location data, biometric data, health data, login information.

AP exam shortcut

For big data questions, always give both sides: one useful benefit and one specific risk.

Common trap

Do not say big data is only good or only bad. AP CSP expects benefits and risks.

AP CSP Unit 2 test-day traps

TrapWhat to Remember
Reading binary like decimal1012 = 510, not 101
Mixing bits and bytes8 bits = 1 byte
Confusing Mbps and MBMbps is speed; MB is file size
Inverting compression ratioUse original ÷ compressed
Treating lossy as badLossy is useful when smaller files matter
Choosing lossy for exact filesLegal, code, spreadsheet, and medical files need lossless
Ignoring metadata privacyGPS, timestamp, author, and device can reveal private details
Calling correlation causationRelated variables do not prove cause
Saying big data is only goodBig data has benefits and risks
Ignoring biased dataBad training data can create unfair outcomes

AP CSP Unit 2 quick formulas and shortcuts

NeedShortcut
Convert bits to bytesbits ÷ 8
Convert bytes to bitsbytes × 8
Count values from n bits2ⁿ possible values
Max unsigned value from n bits2ⁿ − 1
Binary place values1, 2, 4, 8, 16, 32, 64, 128
Compression ratiooriginal size ÷ compressed size
Percent savedamount reduced ÷ original size × 100
Lossless clueexact reconstruction
Lossy cluesmaller file with acceptable quality loss
Metadata cluedata about data

5-minute readiness checklist

Before you take the AP CSP Unit 2 quiz or practice questions, make sure you can:

If you can do these without checking notes, take the Unit 2 quiz. If several items feel weak, open the linked concept guide before full practice.

What to do after this cheat sheet

If you need…Go here
Full explanationUnit 2 Review
Concise explanationUnit 2 Notes
Vocabulary recallUnit 2 Flashcards
Short readiness checkUnit 2 Quiz
Full practiceUnit 2 Practice Questions
Binary helpBinary to Decimal Conversion
Compression helpLossless vs Lossy Compression
Privacy/bias helpBig Data, Privacy, and Data Bias
Quick answers

Frequently asked questions

Is an AP CSP Unit 2 cheat sheet enough to study?

No. A cheat sheet is for fast recall after you have already learned the unit. Use it five minutes before the Unit 2 quiz or practice set, then answer without looking. If you cannot explain a row from memory, open the linked concept guide instead of rereading the table.

What should be on an AP CSP Unit 2 cheat sheet?

Binary place values, bit and byte rules, binary-to-decimal steps, compression ratio and percent saved, lossless versus lossy picks, metadata clues, PII, re-identification, data bias, and common traps. This page groups those into six cheat sheet blocks plus a five-minute review path.

What are the most important AP CSP Unit 2 formulas?

Bits to bytes (divide by 8), bytes to bits (multiply by 8), 2ⁿ values from n bits, max unsigned 2ⁿ − 1, compression ratio as original divided by compressed size, and percent saved as amount reduced divided by original size times 100.

How do I remember lossless vs lossy compression?

Ask whether the file must be restored exactly. Yes means lossless (text, code, legal, medical). No, and smaller size matters, often means lossy (photos, audio, video). Lossy is not automatically bad when quality loss is acceptable.

What is the biggest binary mistake in AP CSP Unit 2?

Reading binary like base-10. Binary 101 equals decimal 5, not one hundred one. Also mix up bits and bytes, or Mbps (speed in bits) with MB (file size in bytes).

What is the biggest compression ratio mistake?

Inverting the ratio or answering with percent saved when the stem asks for ratio. Use original divided by compressed for ratio (for example 12 MB to 3 MB is 4:1). Percent saved is a different calculation.

Does the cheat sheet cover metadata and privacy?

Yes. Cheat Sheet 5 covers metadata (data about data) and privacy risks such as GPS in photos. Cheat Sheet 6 covers PII, re-identification, data bias, and big-data benefits and risks. Open the metadata and big-data guides for scenario practice.

When should I stop using the cheat sheet?

Stop when you can complete the readiness checklist without notes and score well on the Unit 2 quiz and practice questions without opening the page. If you need the sheet on every question, you are not exam-ready yet.

What should I do after the cheat sheet?

Take the Unit 2 quiz without looking, then the fifty practice MCQs. Reopen concept guides for any missed topic. Use Unit 2 Review for full explanations, Notes for a concise outline, and Flashcards for vocabulary you keep missing.

Are these official AP CSP test answers?

No. This page does not provide official AP CSP test answers or secure classroom assessment answers. It gives original study guidance, formulas, traps, and links to AP-style practice so students can prepare honestly.

Unit 2 quiz 50 MCQs