Study Guide Instructor view
Representing Text
Teaching notes for Lesson 1.6, with controls for presenting it.
Keep this page on your own screen. Share only the lesson window. The lesson window holds no teaching notes, so sharing it cannot show them.
Presenting
- Open the lesson in its own window and share that window, not this one.
- Use Next and Previous here, or the lesson’s own, to move through the lesson. Next reveals one thing at a time: the next idea, or the answer to the question on screen, then the next step. Previous takes the last reveal back. The line below says what is on screen and what Next will show.
- Reveal hints and answers when the class is ready, and reset a demonstration before using it again.
The controls need JavaScript and a browser that supports BroadcastChannel. Without them, open the lesson in presentation mode and use its own controls.
The two windows talk to each other only inside this browser, on this device. Nothing is sent to a server, and no account is needed. A second device (a phone or another tablet) cannot follow the lesson window yet.
Now on the lesson window
- On screen
- Next teaching point
Guidance for this point
Lesson plan
- Level
- Intermediate
- Time
- About 50 minutes; the steps below add up to 50
Learners begin with a secret number code for letters and see that a computer needs the same thing, a character set. They work out how many bits a character needs from the number of characters, decode and encode ASCII, correct the idea that the character 7 is stored as the number seven, and find why Unicode exists and what it costs. They finish by choosing a character set for a job and correcting the claim that Unicode is always better.
Objectives
- Explain why text has to be converted to binary before a computer can process it
- Work out how many bits a character set needs for a given number of characters
- Use ASCII codes to convert characters to denary and binary, and a binary message back to text
- Describe how ASCII, extended ASCII and Unicode differ in range and in bits per character
- Choose between ASCII and Unicode for a situation, and justify the choice
Before the lesson
- Write the alphabet A to Z with the numbers 1 to 26 on the board for the opening code.
- A small ASCII table visible during the lesson (A 65, a 97, 0 48, space 32); learners are never expected to memorise it.
- Mini whiteboards for converting between denary codes and 8-bit binary.
- Optional: a message containing an emoji, to display on the screen in the Unicode step.
Steps
Introduction Opening
On the lesson window now
On screen: the lesson’s title, module and number; Next adds its objectives and key terms, as the lesson page lists them; Next again begins the first step.
Objectives on screen
- Explain why text has to be converted to binary before a computer can process it
- Work out how many bits a character set needs for a given number of characters
- Use ASCII codes to convert characters to denary and binary, and a binary message back to text
- Describe how ASCII, extended ASCII and Unicode differ in range and in bits per character
- Choose between ASCII and Unicode for a situation, and justify the choice
Purpose: Learners begin with a secret number code for letters and see that a computer needs the same thing, a character set. They work out how many bits a character needs from the number of characters, decode and encode ASCII, correct the idea that the character 7 is stored as the number seven, and find why Unicode exists and what it costs. They finish by choosing a character set for a job and correcting the claim that Unicode is always better.
1. Notes in number code Think 5 min
On the lesson window now
Purpose: Start from a code learners can use immediately, so that a character set is a name for something they already do.
Ask
- What numbers stand for the word CAT in Mei and Joe’s code?
- Why does a computer need a code like this to store a message?
Responses to expect
- 3, 1, 20
- A computer stores bits, which make numbers, so each character needs a number first
Misconceptions to challenge
- A learner may believe: “A computer can store the letter itself.” Respond: A computer stores only bits. The letter has to be turned into a number, and the number into binary.
- A learner may believe: “The code can be different for the sender and the receiver.” Respond: Ask what happens if Joe uses A = 0: every message from Mei is read wrongly. Both sides must use the same character set.
On the board or with the pen
- Write C A T with 3 1 20 under it; then write ‘same list on both sides’.
Checking understanding: Pairs swap coded names and decode each other’s.
English as an additional language
- Check character, code and message; point to a keyboard to show characters.
Discussion pause: Ask learners to code their own name before sharing, in silence.
In the lesson window
- Think it through: What numbers stand for the word CAT in Mei and Joe’s code? A computer can only store patterns of bits, so why might it need a code like this to store a message?
2. How many bits does a character need? Discover 7 min
On the lesson window now
Purpose: Learners work out how many bits give each of N characters its own pattern, before the table of ASCII is shown.
Ask
- A robot knows eight symbols. How many bits does each symbol need? What about 26 symbols?
- A character set has 100 characters. What is the fewest number of bits that works?
Responses to expect
- 3 bits for 8; 5 bits for 26 (4 bits give only 16, 5 give 32)
- 7 bits: 6 bits make only 64, and 7 make 128
Misconceptions to challenge
- A learner may believe: “6 bits, because 6 × 16 = 96 is nearly 100 (bits-for-hundred option A).” Respond: The number of patterns grows by doubling, not by multiplying the bits. List 2, 4, 8, 16, 32, 64, 128.
- A learner may believe: “8 bits, because a character is always one byte (option C).” Respond: 8 bits would work, but the question asks for the fewest. Ask whether 7 bits would be enough.
On the board or with the pen
- Write 2 4 8 16 32 64 128 along the board and mark the first value that reaches 100.
What learners should notice
- Each extra bit doubles the number of patterns.
Checking understanding: The bits-for-hundred check.
Depending on the answers
- If learners multiply the bits instead of doubling: return to bits-for-eight-symbols and list the patterns for 1, 2 and 3 bits.
Support
- Provide the powers of 2 up to 256 on a card.
In the lesson window
- Think it through: How many bits does each symbol need, if the robot knows eight symbols? What about 26 symbols, one for each capital letter?
- Check your understanding: A character set has 100 different characters. What is the fewest number of bits that gives every character its own pattern?
3. ASCII: a code for English text Discover 9 min
On the lesson window now
Purpose: Learners predict ASCII codes from a pattern in a small table, and then convert characters to denary and 8-bit binary.
Ask
- What would the codes for E, for c and for the digit 3 be? How far apart are A and a?
- Why is ASCII normally stored in a byte even though it uses 7 bits?
Responses to expect
- E is 69, c is 99, 3 is 51; a is 32 above A
- Seven bits is an awkward size, so a 0 is added on the left to fill a byte
Misconceptions to challenge
- A learner may believe: “Codes follow no pattern, so they must be memorised.” Respond: The letters and digits run in order, so one code gives its neighbours. A question gives the codes needed.
- A learner may believe: “ASCII has 256 characters.” Respond: ASCII uses 7 bits, so 2^7 = 128. 256 is for extended ASCII with 8 bits.
On the board or with the pen
- Write A 65, B 66, C 67 in a column and ask for D, E, and then continue into a for the lower-case offset.
What learners should notice
- Lower-case letters are 32 above their capitals.
Checking understanding: The ASCII conversion table: watch for the 0 left of a seven-bit code (0100 0001).
Depending on the answers
- If learners can predict but not convert to binary: revisit 65 = 64 + 1 using the 128 to 1 columns.
English as an additional language
- Check ASCII, code and character set with a keyboard picture.
Discussion pause: Silent thirty seconds before predicting E, c and 3.
In the lesson window
- Think it through: Look at the patterns. What would the codes for E, for c and for the digit 3 be? And how far apart are A and a?
4. The digit 7 is not the number 7 Predict 8 min
On the lesson window now
Purpose: Learners predict whether the character 7 is stored as the number seven, and meet the idea that a character and a number are stored differently.
Ask
- Do you think a phone stores the character 7 in a message as 0000 0111? Why?
- Which pattern is the character 4 as text?
Responses to expect
- No: the character 7 has its own ASCII code, 55, which is 0011 0111
- 0011 0100, because the code for 0 is 48 and 4 is 52
Misconceptions to challenge
- A learner may believe: “The character 4 is 0000 0100, four in binary (character-four option A).” Respond: That is the number four. The question is about the character 4 as text: which table gives each character its own code?
- A learner may believe: “The character 4 is 0011 0000 (character-four option B).” Respond: That is the code for the character 0. Count on from it to reach the character 4.
- A learner may believe: “A computer needs only one way of storing digits.” Respond: It needs both: numbers it can calculate with, and digits as text it can display, such as a phone number.
On the board or with the pen
- Write ‘number 7 = 0000 0111’ and ‘character 7 = 0011 0111’ side by side.
Checking understanding: The character-four check; the decoding table (DOG) checks the reverse direction.
Depending on the answers
- If learners decode by counting from A = 65 but make errors: do the first one aloud: convert to denary, then count along the alphabet.
Stretch
- What would the text message ‘12’ look like as bytes, and how is it different from the number twelve?
In the lesson window
- Think it through: In the first lesson, seven in binary was 0000 0111. Do you think a phone stores the character 7 in a text message as 0000 0111? Give a reason, and say which pattern you think it might use.
- Check your understanding: A word processor stores the character 4 as text. Which pattern does it store?
5. When 128 characters are not enough Think 7 min
On the lesson window now
Purpose: Learners work out why 128 characters are not enough and what can be done, then name extended ASCII and Unicode.
Ask
- Why can’t the 128 ASCII characters hold everything ChatBox needs? What could a designer do?
- Which statement best explains why Unicode was created?
Responses to expect
- There are no accented Polish letters, Arabic, Japanese or emojis; use more bits for each code
- ASCII has too few codes for many languages and emojis, so a set with more bits per character was needed
Misconceptions to challenge
- A learner may believe: “ASCII uses more bits than Unicode, so Unicode makes files smaller (why-unicode option B).” Respond: ASCII uses 7 bits (stored in 8). Does Unicode use fewer or more bits per character?
- A learner may believe: “ASCII could not store capital letters (option C).” Respond: ASCII does have capitals: A is 65. What is missing from ASCII that a chat app needs?
- A learner may believe: “Unicode replaced ASCII, so every code is different now.” Respond: The first 128 Unicode codes are the ASCII codes, so A is still 65.
On the board or with the pen
- Write 2^7 = 128, 2^8 = 256, 2^16 = 65 536 down the board and link each to a character set.
What learners should notice
- More bits per code means more patterns, so more characters.
Checking understanding: The why-unicode check; the misconception callout about Unicode replacing ASCII.
Depending on the answers
- If learners think Unicode changes the old codes: show ‘Hi’ in ASCII and in Unicode: the first 128 codes are the same.
English as an additional language
- Check emoji, accent and range; show a Polish word with an accented letter.
In the lesson window
- Think it through: Why can’t the 128 ASCII characters hold everything ChatBox needs? What could a designer do to give each character a code?
- Check your understanding: Which statement best explains why Unicode was created?
6. What more bits cost Apply 11 min
On the lesson window now
Purpose: Learners calculate what more bits cost, choose a character set for a purpose, and correct the claim that Unicode is always better.
Ask
- 500 characters are stored in 8 bits each in ASCII and 16 bits each in Unicode. How many bytes in each form?
- A museum website needs English, Chinese and Spanish. Which character set, and why?
- Adaeze says Unicode is always better. What is the best reply?
Responses to expect
- 500 bytes in ASCII and 1000 bytes in Unicode
- Unicode, because ASCII has no Chinese characters or Spanish accents
- For English letters and digits only, ASCII is enough and takes less space
Misconceptions to challenge
- A learner may believe: “4000 bytes in ASCII and 8000 in Unicode (newsletter-size option B).” Respond: The bits seem to be counted instead of the bytes. Ask how many bytes are in 8 bits.
- A learner may believe: “1000 bytes in ASCII and 500 in Unicode (option D).” Respond: These are the wrong way round. Which set uses more bits for each character?
- A learner may believe: “Extended ASCII is enough for every language (choose-character-set option C).” Respond: Extended ASCII has only 256 characters. How many characters do Chinese and Spanish need together?
- A learner may believe: “ASCII has a greater range of characters than Unicode (adaeze-claim option A).” Respond: It is the other way round. Which set has the greater range, and which uses more bits per character?
Checking understanding: The three apply questions: calculation, choice with a reason, and critique of an overgeneral claim.
Depending on the answers
- If learners cannot turn bits into bytes: return to the 8 bits in a byte and repeat with 100 characters.
- If learners answer the museum question with ASCII: ask them to show the word for a Chinese character in the ASCII table.
Support
- Provide a card: characters × bits = bits; ÷ 8 = bytes.
Stretch
- Why might a website that stores English text choose a form of Unicode that uses one byte for ASCII characters? (optional extension on UTF-8)
In the lesson window
- Apply it: Each ASCII character is stored in 8 bits (one byte). The newsletter is stored in a form of Unicode that uses 16 bits for each character. How many bytes does the newsletter need in each form?
- Apply it: A fictional museum shop builds a website that shows its product names in English, Chinese and Spanish. Which character set should it use, and why?
- Apply it: Adaeze says: “Unicode is always better than ASCII, so ASCII should never be used.” Which reply gives the best reason to disagree?
7. Bring it together Consolidate 3 min
On the lesson window now
Purpose: Learners explain how a computer stores a word and why Unicode is needed, and count the characters of extended ASCII before the summary.
Ask
- Explain how a computer stores the word “Hi” in a text message, and why a phone needs Unicode.
- How many characters can extended ASCII have?
Responses to expect
- H is 72, i is 105; each number is stored in binary (0100 1000 and 0110 1001); Unicode gives codes for more characters with more bits
- 256, because 2^8 = 256
Misconceptions to challenge
- A learner may believe: “Extended ASCII has 8 characters because it has 8 bits.” Respond: That counts the bits. Ask how many patterns 3 bits make, as with the robot.
- A learner may believe: “128, because ASCII has 128 characters.” Respond: 128 is for 7 bits. An eighth bit doubles the patterns.
Checking understanding: Listen for the chain in the explanation: character, code, binary.
Depending on the answers
- If learners cannot explain the chain: start the next lesson by encoding a three-letter word from the ASCII table.
In the lesson window
- Think it through: Without looking back, explain to a friend how a computer stores the word “Hi” in a text message, and why a phone needs Unicode as well as the idea behind ASCII.
- Check your understanding: Extended ASCII uses 8 bits for each character. How many different characters can it have?
Lesson recap Closing
On the lesson window now
On screen: the lesson’s objectives again; Next adds the closing question, which asks the class to explain each one in their own words without looking back. It says nothing about what anyone has learnt: use the answers to decide what to revisit.
Points to listen for
- A computer stores text by giving each character a number from a character set, and storing that number in binary; both sides must use the same set.
- With n bits a character set can have 2^n characters, so more characters need more bits for each code.
- ASCII uses 7 bits (128 characters, A is 65, a is 97, the digit 0 is 48), normally stored in a byte; extended ASCII uses 8 bits (256).
- The character 7 as text has its own code (55); it is not the number seven.
- Unicode has a far greater range and needs more bits per character; its first 128 codes match ASCII. ASCII is enough, and smaller, for plain English text.
Consolidation
- A computer stores text by giving each character a number from a character set, and storing that number in binary; both sides must use the same set.
- With n bits a character set can have 2^n characters, so more characters need more bits for each code.
- ASCII uses 7 bits (128 characters, A is 65, a is 97, the digit 0 is 48), normally stored in a byte; extended ASCII uses 8 bits (256).
- The character 7 as text has its own code (55); it is not the number seven.
- Unicode has a far greater range and needs more bits per character; its first 128 codes match ASCII. ASCII is enough, and smaller, for plain English text.