Unit 2 · Programming 1 · Lesson 2.19 · Review

Rebuild the Map & Review

One day before the test. Put Unit 2’s ideas back on the big map, drill the vocabulary cold, and race through mixed traces. Retrieval, not re-reading — that’s what moves a grade.

Big Idea 3 — Algorithms & ProgrammingReview — the day before the test

Before this lesson

No new reading. Everything here is from 2.1–2.18. If a term below feels fuzzy, that’s tonight’s study target.

1

Where We Are

People→ Bits→ Programs→ Internet→ Security→ Big Data→ Impact

The whole unit lived in one node: Programs. Unit 1 was wide — a dozen ways the world becomes bits. Unit 2 was deep — one idea, “telling the machine what to do,” taken all the way from a first print to compound conditionals.

2

The Point of Today

Can you say the unit in one breath? “A program stores values, computes with them, talks to the user, and makes decisions.” If you can expand each of those four into a sentence without notes, you’re ready. If you stall on one, you just found what to study.

Re-reading the lessons feels productive and mostly isn’t. Making yourself produce the answer before checking — that’s retrieval, and it’s what actually sticks. Everything below is built to make you retrieve.

3

The Unit 2 Map — four regions

Every term in Unit 2 belongs to one of four clusters. Cover the right column and see if you can define each term before you peek.

RegionTerms
Values & math (Wk 1)variable, assignment, value, expression, evaluate, MOD
Talking to the user (Wk 2)input, output, type conversion, string, string method, f-string
Making decisions (Wk 3)Boolean value, Boolean expression, comparison operator, selection, condition, branch, elif chain, nested conditional, logical operator, compound condition, truth table
Process & craft (Wks 2–4)syntax vs run-time vs logic error, purpose statement, edge case, input validation, test case
The two flips to keep drilling all year: assignment vs comparison (= vs ==), and the Python/Pseudocode switch (Python and/or/% ↔ pseudocode AND/OR/MOD, and pseudocode’s single = for comparison).
4

Vocabulary Rapid-Fire

The eight terms most likely to appear on the test, in one line each. Read the term, say the definition out loud, then check.

expression Programs
Something the machine evaluates to a single value.
MOD Programs
The remainder after division. % in Python. n % 2 == 0 tests even.
Boolean expression Programs
An expression that evaluates to True or False.
selection Programs
A program choosing which code runs, based on a condition.
elif chain Programs
Conditions checked in order; the first True block runs, the rest are skipped.
compound condition Programs
Two or more Booleans joined by and, or, or not.
edge case Programs
A boundary or out-of-range input used to test robustness.
logic error Programs
Code that runs but gives the wrong answer — no error message, just wrong.
5

Trace Race

Eight mixed questions — mostly Unit 2, with a couple of Unit 0–1 System Check items mixed in, exactly like the real test. Go fast but trace on paper. Pick an answer for instant feedback.

0 of 8 answered
6

Connections

Pulls together 2.1–2.18 — every term on the map traces back to a lesson. A shaky one names the lesson to reopen tonight.
Next in 2.20 — the Unit 2 test: ~18 questions, heavy on traces, several in pseudocode only, plus one short written response.
Opens Unit 3 — you’ll stop writing each step by hand and start repeating steps with loops. The running-score idea from the Quiz Bot becomes the accumulator pattern.
Returns on the exam — Big Idea 3 is the largest slice of the AP exam. This unit’s traces are the cheapest points on it once they’re automatic.
← 2.17 Mini-Project 2: Quiz Bot