Study Guide Instructor view

Hexadecimal

Teaching notes for Lesson 1.2, 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

  1. Open the lesson in its own window and share that window, not this one.
  2. 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.
  3. 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.

Lesson plan

Level
Intermediate
Time
About 60 minutes; the steps below add up to 60

Learners begin with a problem they feel (reading sixteen bits aloud without losing their place), discover that four bits make sixteen patterns and so suit one symbol each, and only then meet the names hexadecimal and nibble. They convert in both directions with binary, convert to and from denary using column values, and finish by explaining why hexadecimal exists: it is for people, and the computer still stores bits.

Objectives

  • Explain why a group of four bits can be written as one hexadecimal digit
  • Convert between binary and hexadecimal by splitting a number into groups of four bits, for numbers of up to 16 bits
  • Convert between hexadecimal and denary in both directions
  • Explain why hexadecimal is easier for people to read, write and remember than binary, and give examples of where it is used
  • Read a hexadecimal value in a new situation, such as a colour code

Before the lesson

  • Write Mia’s code 1011010011100001 large on the board or screen, ungrouped.
  • Mini whiteboards for conversions; learners should show working, not just answers.
  • A copy of the sixteen-row table (denary, binary, hexadecimal) to reveal after the nibble question, not before.
  • Optional: a hexadecimal colour picker or a screen showing a web colour code such as #00A0FF for the apply step.

Steps

  1. Introduction Opening

    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 a group of four bits can be written as one hexadecimal digit
    • Convert between binary and hexadecimal by splitting a number into groups of four bits, for numbers of up to 16 bits
    • Convert between hexadecimal and denary in both directions
    • Explain why hexadecimal is easier for people to read, write and remember than binary, and give examples of where it is used
    • Read a hexadecimal value in a new situation, such as a colour code

    Purpose: Learners begin with a problem they feel (reading sixteen bits aloud without losing their place), discover that four bits make sixteen patterns and so suit one symbol each, and only then meet the names hexadecimal and nibble. They convert in both directions with binary, convert to and from denary using column values, and finish by explaining why hexadecimal exists: it is for people, and the computer still stores bits.

  2. 1. A code that is hard to read Think 5 min

    Purpose: Create the need for a shorter notation by letting learners feel how error-prone it is to read sixteen identical-looking digits aloud.

    Ask

    • Copy the code from the screen onto paper without looking back. Where do you lose your place?
    • What could Mia do to make it easier to say and copy?

    Responses to expect

    • Skipping or repeating a digit
    • Splitting it into groups, like phone numbers or card numbers

    Misconceptions to challenge

    • A learner may believe: “The solution is to read slowly.” Respond: Slowness does not stop you losing your place in a long run of identical symbols; grouping gives you landmarks.

    On the board or with the pen

    • Write the code once ungrouped, then with gaps after every fourth digit: 1011 0100 1110 0001.

    Checking understanding: Hold up the copies: how many learners have all sixteen digits right?

    Depending on the answers

    • If learners suggest groups of three or five: accept it as reasonable; the next step shows why four is special.

    English as an additional language

    • Check error code, robot and controller; mime copying a number.

    Discussion pause: Thirty seconds of silent copying before anyone speaks.

    In the lesson window

    • Think it through: What could go wrong when Mia reads sixteen 1s and 0s aloud, and what could she do to make the code easier to say and to copy?
  3. 2. Four bits at a time Discover 6 min

    Purpose: Learners work out that a nibble has 16 patterns before the names are given, so that hexadecimal is a consequence and not a rule to memorise.

    Ask

    • How many different patterns can a group of four bits make, and what is the largest value?
    • How many symbols would we need to give each nibble a single symbol?

    Responses to expect

    • 2 × 2 × 2 × 2 = 16 patterns, values 0 to 15
    • Sixteen symbols: ten digits are not enough, so letters are borrowed

    Misconceptions to challenge

    • A learner may believe: “Four bits can hold 4 values (or 8).” Respond: Each extra bit doubles the number of patterns: 2, 4, 8, 16. Ask them to list them if unsure.
    • A learner may believe: “1101 is the symbol 11 or 13 as written (nibble-1101 options A and C).” Respond: Add 8 + 4 + 1 to get 13, then ask which one symbol stands for thirteen: 13 is two symbols, and the nibble needs one.

    On the board or with the pen

    • Write the place values 8 4 2 1 above a nibble and add them for 1101.

    What learners should notice

    • Values 10 to 15 need new single symbols, A to F.

    Checking understanding: The nibble-1101 check: option A (B, eleven) shows a slip in adding the columns; option C (13) shows a symbol-versus-number confusion.

    Depending on the answers

    • If learners say B for 1101: ask them to write 8, 4, 2, 1 under the bits and add only the columns with a 1.
    • If learners choose 13: ask how many symbols the nibble gets, and which one stands for thirteen.

    English as an additional language

    • Teach nibble as ‘half a byte’ with a small bite gesture.

    In the lesson window

    • Think it through: How many different patterns can a group of four bits make? What are the smallest and the largest values it can hold, in denary?
    • Check your understanding: Which hexadecimal digit stands for the nibble 1101?
  4. 3. From binary to hexadecimal Explain 9 min

    Purpose: Learners convert Mia’s code nibble by nibble, then work through a worked example with the reason for each step and a check by converting back.

    Ask

    • Use the table to write Mia’s four nibbles as symbols. What is her code in hexadecimal?
    • Why is there no carrying between nibbles?

    Responses to expect

    • B4E1
    • Each nibble is a digit in its own right; four bits is exactly one hexadecimal digit

    Misconceptions to challenge

    • A learner may believe: “The symbols must be added together.” Respond: Each symbol stays in its place, like digits in a phone number; they are not totalled.
    • A learner may believe: “Leading zeros in a nibble can be left out (0001 becomes nothing).” Respond: Each nibble always gives one symbol, so 0001 is 1, and 0000 is 0 and is not dropped.

    On the board or with the pen

    • Write the nibbles under each other with the symbol beside each, then read down for the answer.

    What learners should notice

    • Four symbols take the place of sixteen digits.

    Checking understanding: The binary-to-hex table: watch for 0000 1011 1000 0001, where the zero nibble must keep its place.

    Depending on the answers

    • If learners get 0B81 as B81: point out the first nibble; B81 is accepted but ask which is the full four-symbol form.
    • If the class is fast: ask them to check one answer by converting back to binary.

    Support

    • Provide the sixteen-row table during the table task.

    In the lesson window

    • Think it through: Use the table to find the symbol for each of Mia’s four nibbles, and write her code in hexadecimal.
  5. 4. When the bits do not split into fours Discover 6 min

    Purpose: Learners work out which end to group from when a number does not split into fours, using the idea that leading zeros do not change a value.

    Ask

    • 101101 has six bits. Should you group from the left or the right? What do you do with the bits left over?
    • What is 1101101 in hexadecimal?

    Responses to expect

    • From the right, because zeros can be added at the front without changing the value (like 0325)
    • 6D, from 0110 and 1101

    Misconceptions to challenge

    • A learner may believe: “Group from the left and pad the end (seven-bits-to-hex option A, DA).” Respond: Padding the right-hand end adds new columns after the last digit and changes the value. Ask which end can take zeros safely.
    • A learner may believe: “The nibbles can be written in either order (option B, D6).” Respond: Columns are worth more towards the left, so the left-hand nibble gives the left-hand symbol.

    Checking understanding: The seven-bits-to-hex check; ask for 64 + 32 + 8 + 4 + 1 = 109 as a check against 6D.

    Depending on the answers

    • If learners group from the left: ask them to convert 1101101 to denary both ways and compare; only grouping from the right gives 109.

    English as an additional language

    • Use 0325 and 325 as the picture for leading zeros.

    In the lesson window

    • Think it through: The binary number 101101 has six bits, but nibbles need four. Should you start making groups of four from the left or from the right? What do you do about the bits left over?
    • Check your understanding: What is the binary number 1101101 in hexadecimal?
  6. 5. From hexadecimal back to binary Predict 6 min

    Purpose: Learners reverse the method on 2F9C before any rule is stated, then practise with a table.

    Ask

    • How could you turn 2F9C back into binary? Write a plan and try it.
    • Why does every symbol give four bits, even a symbol like 2?

    Responses to expect

    • Each symbol gives one nibble, in order: 0010 1111 1001 1100
    • A symbol such as 2 is 0010, so the nibble starts with zeros

    Misconceptions to challenge

    • A learner may believe: “2 is written as 10 (only the bits needed).” Respond: Every symbol gives exactly four bits, otherwise the nibbles would not line up; 2 is 0010.
    • A learner may believe: “F is 16.” Respond: F is fifteen. The symbols run 0 to 9 then A to F, so there is no symbol for sixteen.

    On the board or with the pen

    • Write 2 F 9 C with a nibble under each symbol and fill them in with the pen as learners call them out.

    Checking understanding: Table task: the 90 row checks the zero nibble, and 1B7C checks four symbols for sixteen bits.

    Depending on the answers

    • If many learners drop the zero in 90: ask how many bits 90 should have in total (eight) and recount.

    Support

    • Learners write the place values 8 4 2 1 above each nibble before filling in the bits.

    In the lesson window

    • Think it through: Using what you know about nibbles, how could you turn 2F9C back into binary? Write down your plan and then try it.
  7. 6. Hexadecimal and denary Discover 11 min

    Purpose: Learners predict the first four column values of base 16, and then use them to convert both ways with a worked example and a three-column table.

    Ask

    • What would the first four columns of a base 16 number be worth?
    • What is 7C in denary?
    • Why is hexadecimal 10 not the number ten?

    Responses to expect

    • 1, 16, 256, 4096
    • 124: 7 × 16 + 12
    • 10 in hexadecimal is 1 × 16 + 0 = sixteen

    Misconceptions to challenge

    • A learner may believe: “7C is 712, writing the values side by side (seven-c-denary option B).” Respond: That treats the symbols as denary digits. Ask which column the 7 is in and what a unit of that column is worth.
    • A learner may believe: “7C is 19, from adding 7 + 12 (option C).” Respond: Adding ignores the columns. Ask whether a 7 in the sixteens column is worth the same as a 7 in the ones column.
    • A learner may believe: “Hexadecimal 1000 is one thousand.” Respond: The 1 is in the column worth 16 × 16 × 16, which is 4096; use the three-systems table row.

    On the board or with the pen

    • Write 4096 256 16 1 above the digits of 1A7 and multiply under each.
    • Show the divide-by-16 working for 183 with remainders in a column.

    What learners should notice

    • Each column is worth sixteen times the column on its right.

    Checking understanding: The three-systems table, last row (0001 0000 0000 0000), shows who understands that hexadecimal 1000 is 4096.

    Depending on the answers

    • If learners prefer going through binary: allow it; the lesson’s second route (183 as 1011 0111) is as valid as dividing by 16.
    • If learners struggle with dividing by 16: use the binary route and the fact that each nibble is one symbol.

    Stretch

    • Convert 0x3FFF to denary without a calculator, using 16383 as a check against 2^14 − 1.

    English as an additional language

    • Check the word column and the phrase ‘worth sixteen times’.

    In the lesson window

    • Think it through: In denary the columns from the right are worth 1, 10 and 100: each is ten times the one before. In binary they are 1, 2, 4 and 8: each is twice the one before. What would you expect the first four columns of a base 16 number to be worth?
    • Check your understanding: What is the hexadecimal number 7C in denary?
  8. 7. Why people use hexadecimal Explain 6 min

    Purpose: Learners decide for themselves which of binary, denary and hexadecimal suits people, then name hexadecimal’s real uses and correct the idea that computers store hexadecimal.

    Ask

    • Which would you choose to read out, copy and remember? Which shows the bits most easily?
    • A programmer writes 4F2A instead of 0100111100101010. Why?

    Responses to expect

    • Hexadecimal is shorter and lines up with the bits one symbol per nibble
    • It is for people; the processor stores bits whatever the programmer writes

    Misconceptions to challenge

    • A learner may believe: “The processor stores numbers in hexadecimal, so this saves converting (why-hex-question option A).” Respond: The processor works with bits. Ask who the shorter form is for.
    • A learner may believe: “Hexadecimal takes less space in memory (option B).” Respond: The same number of bits is stored. Ask what the shorter form changes: the memory, or what the person has to read.
    • A learner may believe: “Hexadecimal hides the data like a code (option D).” Respond: Anyone can convert it with the table. It is not encryption.

    What learners should notice

    • Examples in the table are all places where people read or write long binary values.

    Checking understanding: The why-hex-question check; the four options each diagnose a different belief about whether hexadecimal changes what is stored.

    Depending on the answers

    • If learners choose that hexadecimal takes less memory: ask them to count the bits in 4F2A converted to binary; it is still sixteen.

    English as an additional language

    • Check memory dump and MAC address with a picture or an example.

    In the lesson window

    • Think it through: A 16-bit value could be written in binary (sixteen digits), in denary (up to five digits) or in hexadecimal (four digits). Which would you choose for people who must read it out, copy it and remember it? Which one lets you find the underlying bits most easily? Explain your choices.
    • Check your understanding: A programmer writes a memory address as 4F2A instead of 0100111100101010. Why?
  9. 8. Use it somewhere new Apply 8 min

    Purpose: Apply hexadecimal in a colour code, a 16-bit sensor reading, and a classmate’s mistaken conversion.

    Ask

    • What is A0 in denary, in the green amount of #00A0FF?
    • The rain gauge sends 0000 0011 1110 1000. What is the reading in denary?
    • Leo converts 1010 1111 to FA. What has he done?

    Responses to expect

    • 160
    • 1000, from 03E8: 3 × 256 + 14 × 16 + 8
    • He swapped the nibbles: it should be AF

    Misconceptions to challenge

    • A learner may believe: “A0 is 10 because 0 adds nothing.” Respond: Check which column the A is in: the sixteens column, so it is worth 160.
    • A learner may believe: “The reading is 3148, writing 3, 14 and 8 side by side (rain-gauge option B).” Respond: That treats the symbols as denary digits. Work out each symbol’s column value first.
    • A learner may believe: “The order of the symbols does not change the value (Leo option B).” Respond: Hexadecimal is place value, like denary: 25 is not 52. Ask which column each symbol is in.

    Checking understanding: The three apply questions give a row of diagnostics: columns (A0), multi-nibble conversion (rain gauge) and error spotting (Leo).

    Depending on the answers

    • If learners cannot start the rain gauge: ask them to write the four nibbles and their symbols first (0, 3, E, 8).
    • If the class is secure: ask what #FF8000 means in terms of red, green and blue.

    Support

    • Give the columns 4096, 256, 16 and 1 above the four symbols.

    Stretch

    • A colour code has pairs for red, green and blue. What colour is #FFFFFF? What colour is #000000?

    In the lesson window

    • Apply it: What is the amount of green, A0, in denary?
    • Apply it: What is the reading in denary?
    • Apply it: Leo converts 1010 1111 to hexadecimal and writes FA. What has Leo done?
  10. 9. Bring it together Consolidate 3 min

    Purpose: Learners explain conversion in both directions and say why hexadecimal exists, then find the largest four-digit value before the summary.

    Ask

    • Explain how you would convert 3C to binary and to denary, and why hexadecimal is used at all.
    • What is the largest value four hexadecimal digits can hold?

    Responses to expect

    • 3C is 0011 1100 and 3 × 16 + 12 = 60; hexadecimal is for people and converts exactly
    • 65,535, which is FFFF, sixteen bits all on

    Misconceptions to challenge

    • A learner may believe: “The largest is 65,536.” Respond: That is the number of patterns, which includes zero; the largest value is one less.
    • A learner may believe: “The largest is 9,999, as in denary (largest-four-digits option C).” Respond: The largest symbol is F, not 9.

    Checking understanding: Choose two explanations at random and check each against the four points: nibbles, columns, people not computers, exact conversion.

    Depending on the answers

    • If learners cannot explain why hexadecimal is used: start the next lesson by writing a MAC address in binary and in hexadecimal.

    In the lesson window

    • Think it through: Without looking back, explain to a friend how you would convert the hexadecimal number 3C to binary and to denary, and why hexadecimal is used at all.
    • Check your understanding: What is the largest value that four hexadecimal digits can hold?
  11. Lesson recap Closing

    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 nibble is four bits and has 16 patterns, so one hexadecimal symbol (0 to 9, A to F) stands for exactly one nibble.
    • Binary to hexadecimal: group in fours from the right, filling the first group with leading zeros. Hexadecimal to binary: four bits per symbol.
    • Hexadecimal to denary: multiply each symbol by its column (1, 16, 256, 4096) and add. Hexadecimal 10 is sixteen.
    • Hexadecimal is for people, so that long binary values are shorter and easier to read; inside the computer it is still bits.

Consolidation

  • A nibble is four bits and has 16 patterns, so one hexadecimal symbol (0 to 9, A to F) stands for exactly one nibble.
  • Binary to hexadecimal: group in fours from the right, filling the first group with leading zeros. Hexadecimal to binary: four bits per symbol.
  • Hexadecimal to denary: multiply each symbol by its column (1, 16, 256, 4096) and add. Hexadecimal 10 is sixteen.
  • Hexadecimal is for people, so that long binary values are shorter and easier to read; inside the computer it is still bits.