Compression: Lossy and Lossless · seed 1 · A4, ink-friendly. The answer key prints on its own page for grown-ups.

Keep every bit, or drop what hides

Computing · Computer Systems · ages 15-16
Name ______________________   Date ____________
  1. In run-length encoding, what does the first number always count?

    • Red pixels
    • White pixels
    • Rows
  2. What does lossless compression promise?

    • Files shrink tenfold always
    • Dropped detail returns later
    • Every bit returns exactly
  3. A row opens with a red pixel. What is its first run count?

    • 0
    • 1
    • 15
  4. Which kind suits program code?

    • Lossy, since code forgives drops
    • Lossless, since each bit must return
    • Either, since code is tiny
  5. The counts 3, 2, 5, 2 and 4 describe one row. How many pixels does the row hold?

    Answer: ______________

  6. Which kind suits holiday photos for sharing?

    • Lossy, since eyes forgive the trims
    • Lossless, since photos need ZIP
    • Neither, since photos resist packing
  7. Lossy detail, once dropped, can be rebuilt from the small file.

    Circle one:   True   False

  8. A friend re-saves one lossy photo through ten edits and mourns the mush. What is the lesson?

    • Re-save more often for sharpness
    • Lossy files heal with time
    • Keep a lossless master and export copies
LightMySky · lightmysky.comW1-mt_lx2U-B9CFa-s1

Answer key

For grown-ups. Fold this page away before handing over the rest.

Keep every bit, or drop what hides W1-mt_lx2U-B9CFa-s1

  1. White pixels · Run counts always open with the whites.
  2. Every bit returns exactly · Lossless packing keeps every bit, so the file round-trips perfectly.
  3. 0 · Counts always start at white, so a red opener records zero whites.
  4. Lossless, since each bit must return · Code with a dropped bit is broken code, so nothing may go missing.
  5. 16 · Adding the runs gives 3 plus 2 plus 5 plus 2 plus 4, which is 16.
  6. Lossy, since eyes forgive the trims · A photo at half size still reads fine to human eyes.
  7. False · Dropped detail is gone for good. Only lossless round-trips.
  8. Keep a lossless master and export copies · Each lossy re-save grinds quality down, so guard the master.
Worksheet · LightMySky