Quiz 2
Registry Synced

May 2026 Computational Thinking — Quiz 2 pattern atlas

397 words
2 min read
2026-08-16

Reading compass

Now · The four-pass reading order

Computational Thinking pattern atlas

Scope: May 2026 graded assignments cover weeks 1–4 on disk. Weeks 5–8 extensions add nested loops and tie-breaking — labelled as extension material.
Interactive dissections: Quiz 2 pattern atlas.

The four-pass reading order

  1. Entities — records, fields, requested output.
  2. State — counters, sums, flags, extrema (English meaning for each).
  3. Filter — predicate as a sentence about one record.
  4. Finish — empty input, ties, off-by-one.

Pattern families

FamilyWeeksShapesCore move
Records & validity1MCQ, MSQType-check each field before tracing
Trace tables2–5NAT, MCQOne row per record; update every named variable
Predicates & filters2–3MCQ, MSQAND/OR/exceptions in plain English
Interpretation & bugs4–8MSQ, MCQFinal variable must translate to a sentence

Week 2 — medium: counter after predicate

Shape: NAT — final count after scanning a list.
RecordPredicatecount after
init0
each rowtest ≥ vs >+1 only when true
Trap: Using > when the spec says .

Week 3 — medium: running mean

Maintain sum and count together. After k valid records: mean = sum / count. Never overwrite mean with the latest value.
Trap: Dividing before all records are processed.

Week 4 — hard: buggy else branch

If the spec says “count qualifying records”, a branch that decrements on failure is almost always wrong. Trace empty input — count should stay 0.

Week 4 — easy: what does X mean?

Translate the final variable: total rupees vs number of records vs average. If you cannot say it in one English sentence, do not trust the output.

Extension week 6 — nested loops

Outer visits × inner visits = product, not sum. Draw a tiny 2×3 grid and count inner body executions.

Extension week 8 — tie-break

When comparing groups, confirm whether the spec uses total, count, or average. Ties need an explicit secondary rule (e.g. lexicographic code).

Study loop

  1. CT week guide
  2. Interactive patterns
  3. Original drills
  4. Archived mock
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.