Unit 2: Data
CS Principles · Unit 2 · Paper 2

Data unit test

A test on this unit alone, marked as a percentage and a letter grade — for the test your class is actually sitting, rather than for May. Answer everything, then submit once: seeing the answer to question 3 before attempting question 4 makes the final percentage meaningless.

Each paper is built from this unit’s 36 terms and is the same for everyone, so a teacher can assign “Unit 2, Paper 2” and every student sits the identical test. Multiple choice is marked objectively; the written sections you mark yourself against the model answer and rubric.
Suggested time 33 min 30 points0/17 attempted
1

Bias in a program

2

Why digital data is discrete

3

Sound as binary

4

Metadata

5

Personally identifiable information (PII)

6

Abstraction

7

Data cleaning

8

Open data

9

Images as binary

10

Why large datasets need programs

11

Number of values in n bits

12

Round-off error

Short answer 1. Define or explain: Bias in data collection

3 pts

Short answer 2. Define or explain: Overflow vs round-off

3 pts

Short answer 3. Define or explain: Text as binary

3 pts

Short answer 4. Define or explain: Analog vs digital data

3 pts

Free response

6 pts

A city transit agency collects a record for every trip taken on its buses. Each record contains the route number, the stop where the rider boarded, the time of boarding, and the fare category (adult, student, senior, reduced-fare). The agency wants to use this data to decide where to add service.

Identify one piece of information the agency could extract from this data that no single record contains, and describe the process used to extract it.

Explain the difference between the data itself and metadata, giving one example of metadata the agency might store alongside these records.

Explain one way the agency could use filtering to answer the question of which stops are busiest during the morning peak.

Explain why the agency should be cautious about concluding that a stop with few boardings has low demand.

Describe one specific privacy risk created by collecting these records, and one technique that reduces it.

Explain the difference between lossy and lossless compression, and state which would be appropriate if the agency needed to archive these records for later analysis.