Quarry School

Give one bit a meaning

Subject: Computing
Level 1 · FoundationsAbout 7 min read10 new terms
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Quick review (2 minutes)

    In plain words

    Two friends agree on a porch light ahead of time.

    Rule

    A bit has two possible states, so each mark on paper is either 0 or 1. A mark has no meaning until the sender and the receiver share a key, and that key must give the two marks two different meanings. Decode one mark at a time, from left to right, and write one word per mark. Keep the marks and change the key, and you get a different message.

    Step

    1. Agree on the key with your partner and write it down before anyone sets a tile. In this lesson, Key A says 0 means waiting and 1 means ready.

    2. To reverse a key, swap its two meanings. Key B, the reversed lift key, says 0 means ready and 1 means waiting. Reversing the key never changes the order of the marks.

    3. Check the marks. Only 0 and 1 are allowed. If a mark is anything else, or a tile shows no clear face, write "not in the key" and stop instead of guessing.

    4. Start with an empty message. This is the starting point of your trace.

    5. Read the marks from left to right, one mark at a time.

    6. Look up each mark in the key and write its word at the end of the message. In this lesson a mark means the same thing wherever it sits in the row.

    7. Stop when no marks are left. Count the words: there should be one word for each mark.

    8. To encode, work the other way: look up each word in the key and write its mark.

    9. To check, encode your decoded message with the same key. If you get the original marks back, your decoding holds. This check is called a round trip.

    Trap

    The usual mistake is to treat the mark as if it were the meaning: "1 is ready, full stop." The tile shows only a face. Ready comes from Key A, and under Key B the same face means waiting. A computer keeps physical states, not the digits 0 and 1, so the digit names a state and the key turns that state into a meaning.

    The second mistake is to reverse the marks instead of the key. The row 1, 0, 1 reads the same backwards, so flipping its order gives 1, 0, 1 again and repeats Key A's message without anyone noticing. Try 1, 1, 0 under Key A instead: it decodes as ready, ready, waiting.

    Reversing the order of 1, 1, 0 gives 0, 1, 1, which Key A decodes as waiting, ready, ready. Reversing the key gives waiting, waiting, ready. These are three different answers, and only the last one answers "reverse the key".

    A key that gives both marks the same meaning, such as 0 means ready and 1 means ready, also fails. Every message decodes as ready, and waiting can never be sent.

    1 In plain words

    Two friends agree on a porch light ahead of time. Light on means "come over", and light off means "not tonight". The light can look only two ways, and the friends decided what each look means. This lesson builds the same idea with a paper tile.

    A state is the way a thing is at one moment. Our tile is a small square of paper with 0 written on one face and 1 on the other, and the face that points up is its state. A mark is the 0 or 1 you write on paper to record a state. A bit is short for "binary digit": a digit that can take only two values, and binary names a system with only two digits.

    A key is the agreed rule that says what each mark means. Another word for a key is a convention. To encode is to turn a meaning into a mark with the key, and to decode is to turn a mark back into a meaning. A message is the list of meanings you get, one per mark, and a trace is your written record of each step.

    For a short reading, open section 5.1 of the Computer Science Field Guide, "What's the big picture?". Read the Jargon Buster box on bits and the paragraph on writing a computer's states on paper as 0 and 1. Remember three things: a tile shows one of two states, the key gives that state a meaning, and both people need the same key before any message is sent. Look the key up each time you decode, even when you think you know it.

    2 Picture it

    01Key A0 = waiting1 = readyKey B0 = ready1 = waiting101

    The tiles read 1, 0, 1. When 1 means ready, they read ready, waiting, ready. Swap the key and they read waiting, ready, waiting.

    One row of marks under two keys

    3 Why

    A computer does not hold the digits 0 and 1 themselves. It holds physical states, such as a low or a high voltage in memory, or a tiny spot on a magnetic disk magnetised north or south, and people write those states down as 0 and 1. Anything that can be in two states can hold a bit, and which digit is written for which state is a choice people make.

    Because people make that choice, the meaning lives in the key and not in the tile. Computers also use a rule to turn a stored value into something a reader understands. The Field Guide's example is a date: the computer stores a number, and program code turns that number into a date the reader sees.

    Decoding is a lookup. The tiles fix which state comes first, second and third, and the key turns each state into a word. A key has only two meanings to hand out, so reversing it gives the other word at every position while the tiles stay exactly as they were.

    4 The rule

    A bit has two possible states, so each mark on paper is either 0 or 1.

    A mark has no meaning until the sender and the receiver share a key, and that key must give the two marks two different meanings. Decode one mark at a time, from left to right, and write one word per mark. Keep the marks and change the key, and you get a different message.

    5 How

    1. Agree on the key with your partner and write it down before anyone sets a tile. In this lesson, Key A says 0 means waiting and 1 means ready.
    2. To reverse a key, swap its two meanings. Key B, the reversed lift key, says 0 means ready and 1 means waiting. Reversing the key never changes the order of the marks.
    3. Check the marks. Only 0 and 1 are allowed. If a mark is anything else, or a tile shows no clear face, write "not in the key" and stop instead of guessing.
    4. Start with an empty message. This is the starting point of your trace.
    5. Read the marks from left to right, one mark at a time.
    6. Look up each mark in the key and write its word at the end of the message. In this lesson a mark means the same thing wherever it sits in the row.
    7. Stop when no marks are left. Count the words: there should be one word for each mark.
    8. To encode, work the other way: look up each word in the key and write its mark.
    9. To check, encode your decoded message with the same key. If you get the original marks back, your decoding holds. This check is called a round trip.

    6 Trace

    Read 1, 0, 1 with both lift keys
    PositionBit0 means waiting0 means readyExplanation
    11readywaitingLook up 1 in each key.
    20waitingreadyLook up 0 without changing the tile.
    31readywaitingRead the last tile with the same key as the earlier ones.

    7 The trap

    The usual mistake is to treat the mark as if it were the meaning: "1 is ready, full stop." The tile shows only a face. Ready comes from Key A, and under Key B the same face means waiting. A computer keeps physical states, not the digits 0 and 1, so the digit names a state and the key turns that state into a meaning.

    The second mistake is to reverse the marks instead of the key. The row 1, 0, 1 reads the same backwards, so flipping its order gives 1, 0, 1 again and repeats Key A's message without anyone noticing. Try 1, 1, 0 under Key A instead: it decodes as ready, ready, waiting.

    Reversing the order of 1, 1, 0 gives 0, 1, 1, which Key A decodes as waiting, ready, ready. Reversing the key gives waiting, waiting, ready. These are three different answers, and only the last one answers "reverse the key".

    A key that gives both marks the same meaning, such as 0 means ready and 1 means ready, also fails. Every message decodes as ready, and waiting can never be sent.

    Quick checks

    Quick check 1 of 2

    With Key A, where 0 means waiting and 1 means ready, encode the message waiting, waiting, ready.

    Show the steps and the answer
    Answer

    0, 0, 1

    Why: Look up each word in Key A from left to right: waiting gives 0, waiting gives 0, ready gives 1. To check, decode 0, 0, 1 with Key A and you get waiting, waiting, ready back.

    Source: University of Canterbury Computer Science Education Research Group, Computer Science Field Guide: Data Representation, 5.1 What's the big picture?

    Quick check 2 of 2

    A shop hangs a tile in its window each morning. Its key says 1 means open and 0 means closed. The marks for three mornings, first morning on the left, are 0, 1, 1. Decode them. Then decode the same marks with the key reversed.

    Show the steps and the answer
    Answer

    With the key: closed, open, open. With the key reversed: open, closed, closed.

    Why: The marks keep the same order. Only the meaning of each face swaps, so every word changes to the other word. Reading the marks backwards with the original key gives open, open, closed, which answers a different question.

    Source: University of Canterbury Computer Science Education Research Group, Computer Science Field Guide: Data Representation, 5.1 What's the big picture?

    Sources

    1. Computer Science Field Guide: Data Representation, 5.1 What's the big picture?. University of Canterbury Computer Science Education Research Group. CC BY-SA 4.0. Read 25 Nov 2026.
    2. Computer Science Field Guide: Data Representation, 5.3 Numbers. University of Canterbury Computer Science Education Research Group. CC BY-SA 4.0. Read 25 Nov 2026.