AP Computer Science Principles, Unit 2
Exam words: Data
The 23 words a written answer in this unit needs. For each one: what it means, a wording that loses the mark and why, and a sentence that uses it the way a full answer would.
Study these words as a deck
Flashcards, Learn, Test and Match in Cards, with your Still learning marks kept, and the booklet to print on A4 or US Letter. Sign in to open it.
The words
bit
A binary digit, 0 or 1: the smallest unit of data a computer stores.
Loses the mark: “each extra bit adds two more values”. Each extra bit doubles the number of values, so 8 bits hold 256 values, not 16.
Example: A 3-bit code at the Larkspur museum can label 8 rooms, since each bit is 0 or 1 and .
byte
A group of 8 bits, which can hold 256 different values.
Loses the mark: “a byte can count up to 256”. A byte holds 256 values, 0 through 255, so its largest value is 255.
Example: Each pixel's red level in the Quarry Hill photo app is stored in one byte, so it ranges from 0 to 255.
binary number
A base 2 number: each place, from the right, is worth twice the one before.
Loses the mark: “the first bit on the left is the ones place”. The ones place is on the right, as in base 10, and place values double moving left.
Example: The binary number 1011 is 8 + 0 + 2 + 1, which is 11 in decimal.
decimal number
A number written in base 10, using the digits 0 through 9.
Loses the mark: “decimal means a number with a decimal point”. Here decimal means base 10; 37 is a decimal number with no point at all.
Example: The decimal number 13 is 1101 in binary, because 8 + 4 + 1 = 13.
analog data
Data that changes smoothly over a range, like sound waves or temperature.
Loses the mark: “analog data can be stored in a computer exactly as it is”. A computer stores only bits, so analog data must be sampled and rounded into digital values.
Example: The air pressure of a song is analog data, so the Coral Bay recording app samples it 44,100 times a second.
digital data
Data represented as separate, countable values, each stored as bits.
Loses the mark: “a digital recording is a perfect copy of the sound”. Sampling and rounding lose some detail; more samples and more bits come closer but are never exact.
Example: Once the Coral Bay app stores the song as digital data, each sample is a 16-bit number.
sampling
Measuring an analog signal at regular moments to turn it into digital values.
Loses the mark: “sampling keeps every detail of the original sound”. Changes between samples are lost, so a sampled sound is close to the original, not identical.
Example: With a sampling rate of 8,000 times a second, the Juniper voicemail app stores speech in less space but loses high notes.
rounding error
A small inaccuracy when a value cannot be stored exactly in the bits available.
Loses the mark: “a computer stores every number exactly”. A fixed number of bits holds only so many values, so numbers such as one third are stored as close approximations.
Example: Adding 0.1 ten times in the Westvale budget program gives 0.9999999999999999 instead of 1, a rounding error.
data compression
Encoding data in fewer bits than the original, to save space or transfer time.
Loses the mark: “compressing a file again makes it smaller again”. After the first pass the repeated patterns are gone, so a second pass saves little or nothing.
Example: Data compression shrank the Aspen Ridge field photos so the team could upload a day's images on a slow connection.
lossless compression
Compression that lets the original data be rebuilt exactly, bit for bit.
Loses the mark: “lossless compression can make any file smaller”. No lossless method shrinks every file; data with few repeated patterns can stay the same size or grow.
Example: The Silverlake records office uses lossless compression for its contracts, because changing even one character would be unacceptable.
lossy compression
Compression that discards some detail for a smaller file, so the original cannot be rebuilt.
Loses the mark: “opening a lossy file gives back the full original”. The discarded detail is gone for good; decompressing restores only what was kept.
Example: The Brightwater music app streams with lossy compression, so a song is a tenth of its original size and listeners rarely notice the difference.
correlation
A pattern where two variables tend to change together, rising or falling with each other.
Loses the mark: “they rise together so one must cause the other”. A third factor, such as hot weather, can drive both; a correlation alone does not show cause.
Example: The Fernvale survey shows a correlation between hours of daylight and bike rentals, but the data alone cannot say daylight causes the rentals.
causation
One variable directly producing a change in another, which a correlation alone cannot show.
Loses the mark: “correlation proves causation”. Two things moving together may share a cause or be coincidence; showing cause needs a controlled comparison.
Example: To show causation, the Pine Hill library would need to compare similar groups with and without the reading app, not just note that app users read more.
metadata
Data that describes other data, such as a photo's date, place or file size.
Loses the mark: “changing the location tag changes the photo itself”. Metadata describes the data; editing it changes the description, not the pixels.
Example: The metadata on each Redcliff trail photo includes the time it was taken, so the team sorted photos by hour without opening them.
data cleaning
Fixing or removing incorrect, duplicate or inconsistent records so data can be analyzed.
Loses the mark: “cleaning means deleting the values that look surprising”. A surprising value may be real; cleaning fixes errors such as typos and duplicates, not inconvenient results.
Example: Data cleaning for the Oakmont survey merged "Mt. Arden", "Mount Arden" and "mt arden" into one spelling before answers were counted by town.
data set
A collection of related data, usually organized as rows and columns.
Loses the mark: “a bigger data set always gives a trustworthy answer”. Size does not fix a biased way of collecting: millions of answers from one group still describe that group.
Example: The Harborview data set has one row per bus trip, with columns for route, time and number of riders.
trend
A general direction in data over time, such as a steady rise.
Loses the mark: “the trend will keep going the same way beyond the data”. Data describe only the years measured; a trend can level off or reverse after them.
Example: Ticket sales at the Linden theater show a rising trend from 2019 to 2024, though that alone cannot say what 2030 will bring.
big data
Data sets so large or fast-growing that ordinary tools cannot store or analyze them.
Loses the mark: “with big data the answer has to be right”. More data shrinks random error but not bias; a huge sample of the wrong people is still wrong.
Example: The Crestline power company's meters produce big data, billions of readings a day, so it studies them on many computers at once.
filtering
Keeping only the elements or rows that meet a condition, leaving their values unchanged.
Loses the mark: “filtering for days over 70 gives how much each day was over 70”. A filter keeps or drops whole elements; working out a new value for each one is a transformation.
Example: Filtering the Sandpoint temperatures with `IF (t > 70)` keeps 74 and 81 and drops 68, leaving each kept value as it was.
data transformation
Changing every element of data the same way, such as converting each value's unit.
Loses the mark: “a transformation drops the elements that do not fit”. A transformation changes each element and keeps them all; dropping elements is filtering.
Example: A data transformation in the Kestrel weather program turns each Fahrenheit reading into Celsius, so the list of 30 readings is still 30 long.
data visualization
A chart, graph or map that shows data so patterns are easier to see.
Loses the mark: “any chart answers any question equally well”. A bar chart compares groups and a line graph shows change over time; the question decides the chart.
Example: A data visualization of the Millbrook bus data, a line graph of riders per hour, showed the morning peak at once.
spreadsheet
A grid of rows and columns where formulas can filter, sort and summarize data.
Loses the mark: “the average of the filtered rows describes the whole data set”. A summary describes only the rows it was computed from, so leaving rows out changes what it means.
Example: In the Maplewood club's spreadsheet, a formula averages the dues column for only the rows marked paid.
table
Data arranged in rows, one per record, and columns, one per attribute.
Loses the mark: “rows in two tables can be paired by their position”. Rows match only when a shared value, such as a student ID, says they describe the same thing.
Example: The Ironwood library table has one row per book, with columns for title, author and times borrowed.