Exam prep

AP CSP Unit 2: everything is bits, and the question is what you threw away

Unit 2 makes one claim and then explores its consequences. Every kind of information ends up as bits, so representing anything means deciding how many bits it deserves. Compression is that decision made deliberately, and the question the exam keeps asking is what a given method gave up in exchange for size.

DownloadApp StoreSoonGoogle Play
Free to startNo adsTR & EN

WeSolve+ reads the whole document and writes the questions for you

Upload your PDF, photograph your notebook, or point the camera. WeSolve+ writes questions from that material, explains why each answer is right, reads the chapter back to you as a podcast, and remembers every item you missed until you own it.

Start free!

The tool below is a small browser-only tool and it is not WeSolve+: paste a few lines and text rules turn them into cards on the spot. The real app, the one that uses AI, is behind the link above.

Data terms, from your own notes

This is a browser-only tool, and that is all it isIt splits the text you paste by rule, and nothing else. WeSolve+ is a different thing entirely: it reads your whole PDF with AI, writes the reasoning behind every question, speaks the chapter back to you, and remembers what you missed so it can return it. Try the real app now, free!

This tool splits the text you paste by rule and returns cards. It does not convert numbers or compress anything, so it works on the definitions you already wrote down.

Lossy and lossless is the distinction to hold

Lossless compression is reversible: the original comes back exactly. Lossy compression discards information permanently in exchange for a smaller file. Questions describe a use and ask which is appropriate, and the answer turns on whether anyone will ever need the original back.

Adding one bit doubles what you can say

With n bits you get two to the power n distinct values, so each extra bit doubles the range rather than adding to it. That is why small increases in bit depth produce large changes in what a representation can express, and it is asked about far more often than base conversion arithmetic.

Digital is always an approximation of analogue

Sampling a continuous signal means choosing how often to measure and how finely to record each measurement. Both choices discard something. Understanding that digitisation is itself a lossy step, before any compression, is what makes questions about sound and image quality answerable rather than guessable.

Metadata is often the more revealing part

Metadata records when, where and how something was created, and it can identify people even when the content itself does not. This unit uses that to raise questions about privacy, so an answer that treats metadata as merely technical bookkeeping is missing the intended point.

A dataset can show a pattern and cannot show a cause

Large datasets make correlations easy to find and make it tempting to explain them. The course asks you to distinguish what the data supports from what someone claimed it supports, and that distinction is examinable in its own right rather than being a caveat attached to something else.

What to photograph for Data

Your process notes and any code you commented at the time. Related: Unit 1, PDF to quiz and pricing.

Sources used on this page

What each choice trades away
DecisionYou gainYou give up
Lossless compressionSmaller file, exact recoveryLess size reduction
Lossy compressionMuch smaller fileThe original, permanently
More bits per sampleFiner detailStorage and bandwidth
Fewer samples per secondSmaller fileFidelity of the signal
Keeping metadataContext and searchabilityPrivacy
Bigger datasetEasier to find patternsNothing about causation

What is AP CSP Unit 2?

Data: binary representation, compression, metadata, and what can and cannot be concluded from a dataset.

When should compression be lossless?

When anyone will ever need the original back exactly. Lossy compression discards information permanently in exchange for size.

Why does one extra bit matter?

Because n bits give two to the power n values, so each additional bit doubles the range rather than adding to it.

Is digitisation itself lossy?

Yes. Choosing how often to sample and how finely to record each sample both discard information, before any compression is applied.

Why is metadata a privacy topic?

Because it records when, where and how something was created, and can identify people even when the content itself does not.

What can a large dataset not tell me?

That one variable caused another. Size makes correlations easier to find and does nothing to establish causation.

Last updated: 2026-08-15