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 · Data Flashcards Cheat Sheet Essentials Visual Review MC Practice FRQ Practice

AP Computer Science Principles Unit 2 Essentials

The must-know terms and core concepts for Unit 2: Data. Every vocabulary word and idea you need to master.

← Back to Unit 2 hub
Key Concept 1
All data is represented with bits
At the lowest level, computers store everything — numbers, text, images, sound — as bits (0s and 1s). Numbers are written in binary, and a crucial fact is that n bits can represent 2ⁿ different values, so each added bit doubles the possibilities (and too large a value causes overflow). Because bits are an abstraction, the same sequence can mean completely different things depending on how a program interprets it, and continuous analog signals become digital through sampling.
Bits & Binary 2ⁿ Values Abstraction
Key Concept 2
Compression reduces size, trading space against fidelity
Data compression shrinks the number of bits needed to store or send data. Lossless compression removes redundancy so the original is fully recoverable (ZIP, PNG), while lossy compression permanently discards less-important detail for a much smaller size (JPEG, MP3). The central tradeoff: lossless preserves everything but shrinks less; lossy shrinks more but loses quality — so you choose based on whether any loss is acceptable.
Lossless Lossy Tradeoffs
Key Concept 3
Programs turn raw data into information — carefully
Data becomes information only when it is analyzed to reveal patterns and insight. Programs filter, sort, aggregate, and visualize data — often using metadata (data about data) — and can handle datasets far too large for a person. But conclusions require care: data should be cleaned of errors first, and correlation does not imply causation — an association is not proof that one thing causes another.
Extracting Information Metadata Correlation ≠ Causation
Bit
A binary digit, 0 or 1 — the smallest unit of data.
Binary
Byte
A group of 8 bits.
Binary
Binary
The base-2 number system, using only 0s and 1s, that computers use to represent data.
Binary
Bits and values (2ⁿ)
With n bits you can represent 2ⁿ different values.
Binary
Overflow error
An error caused when a number is too large to store in the available bits.
Binary
Analog data
Continuous data with infinitely many possible values.
Binary
Digital data
Discrete data represented using a finite number of bits.
Binary
Sampling
Measuring an analog signal at intervals to convert it to digital data.
Binary
Abstraction
Representing something with bits whose meaning depends on interpretation.
Binary
Data compression
Reducing the number of bits needed to store or transmit data.
Compression
Lossless compression
Compression with no information lost; the original is fully recoverable.
Compression
Lossy compression
Compression that discards some data permanently for a smaller size.
Compression
Redundancy
Repeated or predictable data that compression algorithms can remove.
Compression
Data
Raw facts, values, or measurements.
Information
Information
Insight, patterns, or meaning obtained by analyzing data.
Information
Metadata
Data about data, such as a file's size, date, or location.
Information
Correlation
A statistical association between two variables.
Information
Causation
A relationship in which one variable actually causes a change in another.
Information
Cleaning data
Fixing or removing errors, duplicates, and invalid entries before analysis.
Using Data
Filtering
Selecting only the data that meets specific criteria.
Using Data
Data visualization
Representing data graphically to reveal patterns.
Using Data
Scalability
The ability of a program or system to handle growing amounts of data.
Using Data