SAT / PSAT
SAT / PSAT Prep
History & Social Science
AP World History AP US History AP European History AP Human Geography AP US Government & Politics AP Psychology AP Macroeconomics AP Microeconomics
English
AP English Language & Composition AP English Literature & Composition
Math & Computer Science
AP Calculus AB/BC AP Precalculus AP Statistics AP Computer Science A AP Computer Science Principles
Sciences
AP Biology AP Chemistry AP Environmental Science AP Physics 1 AP Physics 2
World Languages & Arts
AP Spanish Language AP Art History AP Music Theory Start studying →
Unit 2 · Big Idea 2 · 17–22% of Exam

Data

Everything a computer stores is data — and data is just bits. This big idea covers how numbers are represented in binary, how data is compressed to save space, and how programs turn raw data into useful information.

4 topics
Big Idea 2
17–22% of the exam
College Board aligned
← Back to AP Computer Science Principles

Choose your study tool

Six ways to master Unit 2 — pick whichever fits how you like to study.

Flashcards
24 interactive flashcards covering bits and binary, compression, information, and using programs with data. Tap to flip.
Open flashcards →
Cheat Sheet
A one-page visual summary of Unit 2 — every key idea, formula, and exam trap on a single screen.
Open cheat sheet →
Essentials
The core concepts plus a searchable glossary of every vocabulary term you need to know for the exam.
Open essentials →
Visual Review
A slide-by-slide walkthrough of Unit 2 with binary, compression types, metadata, and data processing.
Open visual review →
MCQ Practice
35 multiple-choice questions in College Board exam style, with full explanations of every answer.
Start practice →
FRQ Practice
A Create-Performance-Task-style written response with model answers showing what earns each point.
Start FRQ →

Topics in Unit 2

All 4 topics from the College Board CED, in order.

Topic 2.1
Binary Numbers
How computers represent numbers as bits, and converting between binary and decimal.
Topic 2.2
Data Compression
Reducing the size of data with lossless and lossy compression, and their tradeoffs.
Topic 2.3
Extracting Information from Data
Finding patterns and insight in data, using metadata, and cleaning data.
Topic 2.4
Using Programs with Data
How programs process, filter, and transform data — including very large datasets.

About Unit 2

Unit 2 covers Big Idea 2: Data. At the lowest level, all data in a computer is stored as bits — 0s and 1s. You'll learn how numbers are represented in binary, how to convert between binary and decimal, and the key fact that n bits can represent 2ⁿ different values. Because bits are an abstraction, the same sequence of bits can represent numbers, text, images, or sound depending on how it is interpreted.

The unit then covers data compression — shrinking data to save storage and transmission time. Lossless compression reduces size with no information lost (the original is fully recoverable), while lossy compression discards some data for a smaller size, trading fidelity for space. Finally, you'll study how programs extract information from data — finding patterns, using metadata, cleaning data, and remembering that correlation does not imply causation — and how programs process datasets far too large for people to handle by hand.

This is Big Idea 2, worth 17–22% of the multiple-choice exam. The six computational thinking practices below spiral through this and every big idea:

Practice 1
Computational Solution Design
Practice 2
Algorithms & Program Development
Practice 3
Abstraction in Program Development
Practice 4
Code Analysis
Practice 5
Computing Innovations
Practice 6
Responsible Computing
Up next
Unit 3: Algorithms & Programming (Big Idea 3)
Start Unit 3 →