Skip to content
Cardinal Spellman High SchoolComputer Science Department
  • Study
  • Teacher tools
  • About

Cardinal Spellman High SchoolComputer Science Department

Developed by Farzin Khan Shifat

Go to the top of the page↑

Explore

  • Study
  • Teacher tools
  • Department

Need help?

  • Teacher guide
  • Request a tool
  • Report a problem

Your progress stays on this device. Vercel counts visits to public study pages, without your names, answers, files or grades. On a shared computer, use Forget my progress when you finish.

Study calculator

Drag this handle or use arrow keys to move the calculator. Home restores its position.

You can keep working on the page while this calculator is open. Closing keeps your calculations in this tab. Reloading clears them. This is Spellman’s study calculator, not a TI-84 emulator.

  1. ← All courses
  2. Computer Science
  3. Unit 5: Digital Representation and File Management

Lesson 3 of 5

Same Bits, Different Meaning

How an agreed code gives bits a meaning

Lessons and study tools
PracticeKey words
  1. Unit 1: Computer Hardware
    1. What Makes a Computer?
    2. Four Jobs of a Computer
    3. Data and Information
    4. CPU, RAM, and Storage
    5. Devices and Ports
    6. Choosing Hardware
    7. Hardware Review
  2. Unit 2: Computer and Internet Basics
    1. The Five Roles
    2. The Request Trip
    3. Local, Remote, and the Cloud
    4. Unit Review
  3. Unit 5: Digital Representation and File Management
    1. Only Two Choices: Bits and Switches
    2. Counting in Binary
    3. Current lessonSame Bits, Different Meaning
    4. Pictures, Sound and Size
    5. Adding in Binary
    6. Binary Review
  1. 1Learn it
  2. 2Practice it
  3. 12343Classwork
  4. 4Homework
  5. 5Finish

Step 1 of 5: Learn it

Learn it · 1 of 9Big ideas: an agreed codeNext: One pattern, two rulesChoose an activity

One idea at a time. Try the example, then keep going.

Big ideas · 1 of 9

Big ideas

Big ideas: an agreed code

Do this: Read each idea. Then say what 0110 means, and ask: under which rule?

Key words

  • Key word · Unit 5EncodingAn AGREED RULE that gives bit patterns a meaning.Exactly: A set of rules for turning information into bits and back again. The reader must use the same encoding as the writer.Mix-up alert: Bits do not carry their meaning inside them. The same pattern can mean different things under different encodings.See this in Key words
  • Key word · Unit 5CodeThe bit pattern that STANDS FOR one thing under a rule.Exactly: In an encoding, each letter, number or instruction gets its own pattern. In ASCII, the code for A is 01000001.Mix-up alert: Here a code is not a secret message or a program. ASCII is public, so computers that use ASCII agree on these letter codes.See this in Key words
  • Key word · Unit 5CharacterOne letter, digit, space or symbol in text.Exactly: A single unit of text, such as A, 7, a space or a question mark. ASCII gives each character a number code. In these activities, assume one byte per capital letter: A is 65, written 01000001.Mix-up alert: A character is not always exactly one byte in real text. When a question says "assume one byte per character", that is a rule for that question.See this in Key words
  1. 1

    1. Bits alone mean nothing

    On its own, a pattern like 0110 does not say whether it is a number, a letter, a color or a move.

  2. 2

    2. An agreed rule

    An Key word · Unit 5EncodingAn AGREED RULE that gives bit patterns a meaning.Exactly: A set of rules for turning information into bits and back again. The reader must use the same encoding as the writer.Mix-up alert: Bits do not carry their meaning inside them. The same pattern can mean different things under different encodings.See this in Key words is an agreed rule that gives bit patterns a meaning. The computer that writes the bits and the one that reads them must use the same rule.

    01000001A
  3. 3

    3. Each thing gets a code

    Under an encoding, each thing gets its own pattern, called its Key word · Unit 5CodeThe bit pattern that STANDS FOR one thing under a rule.Exactly: In an encoding, each letter, number or instruction gets its own pattern. In ASCII, the code for A is 01000001.Mix-up alert: Here a code is not a secret message or a program. ASCII is public, so computers that use ASCII agree on these letter codes.See this in Key words. Here, a code is not a secret message and not a program.

    A= 01000001
  4. 4

    4. Text: a code per character

    A text code called ASCII gives each Key word · Unit 5CharacterOne letter, digit, space or symbol in text.Exactly: A single unit of text, such as A, 7, a space or a question mark. ASCII gives each character a number code. In these activities, assume one byte per capital letter: A is 65, written 01000001.Mix-up alert: A character is not always exactly one byte in real text. When a question says "assume one byte per character", that is a rule for that question.See this in Key words (letter, digit, space or symbol) a number: A is 65, written 01000001. B is 66, written 01000010.

    A7?
  5. 5

    5. A tiny code of our own

    Our own direction code uses 2 bits per move: 00 is up, 01 is right, 10 is down and 11 is left.

Tip: Bits are like letters on a page. They only mean something if you know the language!

Step-through

One pattern, two rules

Do this: Step through the picture. Before each step, say what you think the pattern will mean.

Here is one bit pattern, 0110. Watch what happens when we read it with two different rules.

0110PatternAs a number804121100+4+2+0= 6As directions01right10down00up01right10down11leftwriterreaderSame rulefor writer and reader

Whole picture, 4 steps

4 steps. Tap a number or Show me how it works.

Try it

Code Breaker: one pattern, two ways

Do this: Compare the number rule and direction code. Predict what 0110 means under each rule, then check.

Read 0110 as a number, then with our direction code. After that, use the letter table to encode your initials.

Same bits, new meaning

0110

Read as a number
Place values and bits
8421
0110

0 + 4 + 2 + 0 = 6

Read with the direction code
  1. 01 is right
  2. 10 is down

Same bits. Different rule. Different meaning.

Your code table

A code works when we agree on its rule. Keep this table handy.

ASCII capital letters, shown in 8 bits
A
01000001
B
01000010
C
01000011
D
01000100
E
01000101
F
01000110
G
01000111
H
01001000
I
01001001
J
01001010
K
01001011
L
01001100
M
01001101
N
01001110
O
01001111
P
01010000
Q
01010001
R
01010010
S
01010011
T
01010100
U
01010101
V
01010110
W
01010111
X
01011000
Y
01011001
Z
01011010
Our direction code: 2 bits per move
00
↑up
01
→right
10
↓down
11
←left

Practice 1 of 1: Build a code

Nothing you type is saved or sent.

Use the table. Tap, Enter or Space flips a bit. Follow positions 1 to 8.

Remember: The bits do not change. The rule you use to read them changes what they mean.

Tip: Always ask which rule you are using before you read bits.

Worked example: decoding a word

Do this: Follow each step. Then use the table to decode the first byte again.

Letter codes: A = 01000001, B = 01000010, C = 01000011. Decode 01000011 01000001 01000010.

  1. Step 1: Assume one byte per capital letter, so read 8 bits at a time.
  2. Step 2: Look up each byte: 01000011 is C, 01000001 is A, 01000010 is B.
  3. Step 3: Put the letters in order.

The word is CAB.

Worked example: decoding moves

Do this: Follow each step. Then write the moves for 1100.

Direction code: 00 up, 01 right, 10 down, 11 left. A robot gets 0001.

  1. Step 1: Each move uses 2 bits, so split it into 00 and 01.
  2. Step 2: Look them up: 00 is up and 01 is right.
  3. Step 3: Put the moves in order.

The robot moves up, then right.

Mix-up alert: the bits do not know what they mean

Do this: Letter codes: A = 01000001, B = 01000010, C = 01000011. Say two things 01000001 could mean.

01000001 is not always the letter A. With the ASCII letter code it is A; as a binary number it is 65. The meaning comes from the rule you use.

Mix-up alert: this kind of code is not a secret

Do this: Explain what code means in this topic.

In this topic, a Key word · Unit 5CodeThe bit pattern that STANDS FOR one thing under a rule.Exactly: In an encoding, each letter, number or instruction gets its own pattern. In ASCII, the code for A is 01000001.Mix-up alert: Here a code is not a secret message or a program. ASCII is public, so computers that use ASCII agree on these letter codes.See this in Key words is not a secret message and not a program. It is a pattern that everyone using the rule agrees on. ASCII is public, so computers that use ASCII agree on these letter codes.

Mix-up alert: a character is not always one byte

Do this: Explain when you may count one byte per character.

A Key word · Unit 5CharacterOne letter, digit, space or symbol in text.Exactly: A single unit of text, such as A, 7, a space or a question mark. ASCII gives each character a number code. In these activities, assume one byte per capital letter: A is 65, written 01000001.Mix-up alert: A character is not always exactly one byte in real text. When a question says "assume one byte per character", that is a rule for that question.See this in Key words is not always exactly one byte in real text. In these activities, we assume one byte per capital letter. When a question says "assume one byte per character", that is a rule for that question.

From other sites

Watch and explore

Do this: Pick one to see the same ideas another way.

  • How exactly does binary code work?

    TED-Ed, about 5 minutes

    Watch from 1:04 to 2:26

    Watch for:

    • Why a bit pattern has no meaning alone
    • The pattern that can mean T or 84, and what you need to tell which
    • It says UTF-8; for capital letters, UTF-8 and ASCII use the same codes
    Open on YouTube↗ (opens in a new tab)Open the full lesson↗ (opens in a new tab)
  • How Computers Work: Binary & Data

    Code.org, about 6 minutes

    Watch from 3:34 to 4:21

    Watch for:

    • How the video gives each letter a number
    • How words become a list of numbers
    • This video uses its own letter code (A is 1), not ASCII (A is 65)
    Open on YouTube↗ (opens in a new tab)

Video not loading? It might be blocked on this wifi. Try it at home.

Step 2 of 5: Practice it

What is left (7 of 7)

Ready when you are.

Activity 1 of 7 · 0 of 7 activities done

Try it

Code Breaker: letters

Do this: Decode each word one byte at a time. Then build the code for your initials.

In this activity, assume one byte per capital letter. Use the table to decode each word.

Your code table

A code works when we agree on its rule. Keep this table handy.

ASCII capital letters, shown in 8 bits
F
01000110
G
01000111
H
01001000
I
01001001
J
01001010

Round 1 of 4: Crack the code

Read each 8-bit code in the table. Type its capital letter below.

Nothing you type is saved or sent.

Remember: Read 8 bits at a time and look each byte up in the table.

Try it

Code Breaker: directions

Do this: Split each pattern into pairs, then decode the moves.

Each move is 2 bits: 00 up, 01 right, 10 down, 11 left. Decode each set of moves.

Your code table

A code works when we agree on its rule. Keep this table handy.

Our direction code: 2 bits per move
00
↑up
01
→right
10
↓down
11
←left

Round 1 of 4: Crack the code

Choose one direction for each pair. Use arrow keys within each group, then Tab to the next move.

Move 1: 00

Move 2: 01

Remember: Read 2 bits at a time with the direction code.

Write it

Explain one pattern, two meanings

Do this: Write two or three sentences, then compare with the key points.

Step 1 of 3: Write

Place values, left to right: 8, 4, 2, 1. Direction code: 00 up, 01 right, 10 down, 11 left. Ava says 0110 means 6. Leo says 0110 means right, then down. Explain how they can both be right.

Start here if it helps: They can both be right because...

0 words · Aim for 30 or more. This is a guide, not a limit.

Your answer is not saved anywhere. It disappears when you leave the page.

Flashcards

Code cards

Do this: Say your answer before you flip. Mark what you still need to learn.

Card 1 of 15

Codes and meaning

0 Know it0 Still learning

Writer and reader must share it.

Deck options
Keyboard help

On the card: Enter or Space flips. Left and Right move. After revealing, 1 marks Still learning and 2 marks Know it. Tab reaches every control.

Question

What is an encoding?

Answer

An agreed rule that gives bit patterns a meaning.

Question

Letter codes: A = 01000001, B = 01000010, C = 01000011. What is the code for A?

Answer

01000001, which is 65.

Question

Letter codes: A = 01000001, B = 01000010, C = 01000011. What is the code for B?

Answer

01000010, which is 66.

Question

What is a character?

Answer

One letter, digit, space or symbol in text.

Question

Direction code: 00 up, 01 right, 10 down, 11 left. In our direction code, what is 00?

Answer

Up.

Question

Direction code: 00 up, 01 right, 10 down, 11 left. In our direction code, what is 11?

Answer

Left.

Place values
8421
0110

Question

Place values, left to right: 8, 4, 2, 1. Direction code: 00 up, 01 right, 10 down, 11 left. What does 0110 mean under each rule?

Answer

It depends on the rule: 6 as a number, or right then down in the direction code.

Question

Letter codes: A = 01000001, B = 01000010, C = 01000011. In these activities, how many bits does one capital letter use?

Answer

8 bits, which is 1 byte.

Question

Why must the writer and the reader use the same encoding?

Answer

Otherwise the reader gets a different meaning from the same bits.

Question

Letter codes: A = 01000001, B = 01000010, C = 01000011. What is the code for C?

Answer

01000011, which is 67.

Question

Letter codes: G = 01000111, H = 01001000, I = 01001001, O = 01001111. Which letter is 01000111?

Answer

G, which is 71.

Question

Direction code: 00 up, 01 right, 10 down, 11 left. In our direction code, what is 01?

Answer

Right.

Question

Direction code: 00 up, 01 right, 10 down, 11 left. In our direction code, what is 10?

Answer

Down.

Question

Our direction code uses 2 bits per move. How many moves do 8 bits make?

Answer

4 moves, because each move is 2 bits.

Question

Direction code: 00 up, 01 right, 10 down, 11 left. Write up, then left in our direction code.

Answer

0011.

True or false

Meaning or bits?

Do this: Choose True or False. Read each explanation.

Statement 1 of 12

The same bit pattern can mean different things under different rules.

Self-test

Check yourself

Do this: Answer every question. Read the explanation after each one.

8 questions. One at a time.

Practice, not a grade. No timer. Your best score stays in this browser.

Match

Match the key words

Do this: Choose a word, then choose its meaning.

Word match round

Connect the ideas

0 / 4 connected

Choose a term, then its meaning. Or drag its grip. Use Tab and Enter or Space; Escape clears.

Terms

Meanings

Step 3 of 5: Classwork

Working on paper? Open this lesson's Classwork step and choose Paper and PDF. It gives you your own empty sheet to print.

Your work trail

  1. 1Question 1Start hereCheck your answer. Hints help you try again.
  2. 2Question 2Locked
  3. 3Question 3Locked
  4. 4Question 4Locked
  5. Your exit sentenceLockedOne thing you can do, or a question you still have.
  6. Turn in on ClassroomLockedDownload your finished work, then attach it.
Before you startQuestion 1. Show all steps
  1. 1Question 1Start hereCheck your answer. Hints help you try again.
  2. 2Question 2Locked
  3. 3Question 3Locked
  4. 4Question 4Locked
  5. Your exit sentenceLockedOne thing you can do, or a question you still have.
  6. Turn in on ClassroomLockedDownload your finished work, then attach it.

One step at a time. A hint can help you try again.

Classwork

Same Bits, Different Meaning

Your next step

Started on another device?

Shared computer

How saving works

  • Your answers save in this browser on this device as you go.
  • Your sentence and your name are never saved in this browser. They stay only on this page until you close it, and in a PDF you download.
  • Your teacher sees nothing until you turn it in on Google Classroom. This site can't see Classroom.
  • Anyone using this browser can see saved answers. On a shared computer, use Forget when you finish.
  • Finished work stays until the end of the school year. Unfinished work stays for 30 days.

Step 4 of 5: Homework

Homework · 10 points

Same Bits, Different Meaning homework

Opening your homework…

Working on paper? Open this lesson's Homework step and choose Paper and PDF. It gives you your own empty sheet to print.

Step 5 of 5: Finish

Ready to move on?

Practice it: You did 0 of 7 activities.

You decide when you have finished. This is your study progress, not a grade.

Not marked finished yet.

Next lesson: Pictures, Sound and SizeUnit 5: Digital Representation and File Management
TOPICDONE
Published with approval from Mr. Farzin Khan Shifat. Last updated October 27, 2026.
For teachers: post this lesson in Classroom

Two ready posts. Nothing is saved or sent. Make one Classroom assignment for each step you assign, using the points shown below and its own due date. Copy its post and paste it into the assignment's instructions.

  • 1234Classwork

    Worth 10 points.

    https://gradebridge-beryl.vercel.app/learn/csc/digital-representation-and-files/same-bits-different-meaning#classwork

  • Homework

    Worth 10 points.

    https://gradebridge-beryl.vercel.app/learn/csc/digital-representation-and-files/same-bits-different-meaning#homework

After students turn it in →, open Check student work

Download their files from the assignment's Drive folder, then open them in Check student work.