Skip to content
Computer Science · Grade 9

Active learning ideas

Hexadecimal and Octal Systems

Active learning transforms hexadecimal and octal systems from abstract symbols into concrete tools students manipulate. When students physically group bits, convert live numbers, and debate real-world uses, they build durable mental models that static worksheets cannot. These systems make sense only when students see how grouping reduces complexity.

Ontario Curriculum ExpectationsCS.HS.DA.1CS.HS.N.1
30–50 minPairs → Whole Class4 activities

Activity 01

Peer Teaching45 min · Small Groups

Conversion Stations: Binary to Hex and Octal

Prepare stations with binary numbers on cards. Small groups convert to hex and octal, verify using calculators or charts, then explain efficiencies. Rotate stations every 10 minutes and share one key insight as a class.

Justify the use of hexadecimal in computer science contexts.

Facilitation TipDuring Conversion Stations, have students write the binary number on a whiteboard first, then physically circle groups of four or three bits with colored markers before writing the hex or octal digit.

What to look forPresent students with a binary number, for example, 11010110. Ask them to convert it to both hexadecimal and octal, showing their grouping steps. Check for accuracy in the conversion process.

UnderstandApplyAnalyzeCreateSelf-ManagementRelationship Skills
Generate Complete Lesson

Activity 02

Peer Teaching30 min · Small Groups

Relay Race: Multi-Base Conversions

Divide class into teams. First student converts a decimal number to binary at the board, tags next for binary to hex, then hex to octal. First team to finish all conversions correctly wins. Debrief patterns observed.

Compare the efficiency of representing binary data using hexadecimal versus decimal.

Facilitation TipFor the Relay Race, place number cards face down at each station so students draw randomly, preventing memorization of a fixed sequence.

What to look forPose the question: 'Why do we use hexadecimal for memory addresses instead of decimal?' Facilitate a class discussion where students explain the efficiency gained by representing groups of 4 bits with a single hex digit, referencing their conversion work.

UnderstandApplyAnalyzeCreateSelf-ManagementRelationship Skills
Generate Complete Lesson

Activity 03

Peer Teaching50 min · Pairs

Hex Color Mixer: Programming Challenge

Pairs use a simple online tool or Scratch to input hex codes for RGB colors. Convert binary color values to hex, mix custom palettes, and present why hex suits graphics. Test peer codes for accuracy.

Construct conversions between binary, decimal, and hexadecimal numbers.

Facilitation TipIn Hex Color Mixer, insist students record the binary and hex values next to each color slider before mixing, so they connect the code to the visual outcome.

What to look forGive each student a card with a decimal number (e.g., 255). Ask them to convert it to binary, then to hexadecimal, and finally to octal. On the back, they should write one sentence explaining which system (hex or octal) is more efficient for representing the original binary number and why.

UnderstandApplyAnalyzeCreateSelf-ManagementRelationship Skills
Generate Complete Lesson

Activity 04

Peer Teaching35 min · Small Groups

Efficiency Showdown: Group Debates

Assign large binary numbers to groups. Convert to hex, octal, and decimal; tally digit counts. Debate which base best represents binary data in CS contexts, using posters to justify.

Justify the use of hexadecimal in computer science contexts.

What to look forPresent students with a binary number, for example, 11010110. Ask them to convert it to both hexadecimal and octal, showing their grouping steps. Check for accuracy in the conversion process.

UnderstandApplyAnalyzeCreateSelf-ManagementRelationship Skills
Generate Complete Lesson

A few notes on teaching this unit

Teachers should start with physical manipulatives like bead strings or color tiles to make grouping visible and tactile. Avoid rushing to the algorithm; let students discover the pattern that four bits map to one hex digit and three bits to one octal digit through repeated, guided practice. Use frequent low-stakes checks to catch misconceptions early, especially around digit values and alignment.

By the end of these activities, students will convert between binary, decimal, hexadecimal, and octal reliably, explain why hexadecimal is efficient for memory and color codes, and justify their process using correct grouping. They will also recognize when alignment or digit value errors occur and correct them independently.


Watch Out for These Misconceptions

  • During Conversion Stations, watch for students who treat A-F as variables that can change value.

    Have students sort digit cards labeled A-F next to their binary equivalents (1010 to 1111) repeatedly until the fixed values become automatic. Circulate and ask each group to explain why A always equals 10 before proceeding.

  • During Conversion Stations, watch for students who believe octal skips bits in a binary number.

    Give each pair a bead string and ask them to bundle exactly three beads starting from the right, then write the octal digit for each bundle. If a student misaligns the bundles, prompt them to recount together and adjust the grouping.

  • During the Relay Race, watch for students who think hexadecimal replaces binary entirely and is not connected to it.

    After the race, have teams present one conversion where a hex error caused a binary error. Ask them to trace how the mistake propagated, then discuss why hex is a human-readable layer on top of binary.


Methods used in this brief