Teachers' Portal  /  IGCSE Computer Science 0478  /  Data representation  /  Why computers use binary: binary and denary
Lesson pack · IGCSE Computer Science 0478 · 1.1 · IGCSE

Why computers use binary: binary and denary

Two symbols are enough. A computer is built from billions of tiny switches that are either off or on.

Student lesson Lab, full screen
At a glance

The shape of the lesson

Topic
Data representation
Syllabus reference
Cambridge IGCSE Computer Science 0478, 1.1
Level
IGCSE
Duration
45 minutes, lab-led; stretches to a 60 minute block (see the contingency notes)
Position in topic
Lesson 1 of 10 in Data representation; leads into Hexadecimal and where it is used
Central model
Fig. 1: the 8-bit binary number 10100101 is 165 in denary
Cooperative structure
Assessment
Stage 1 check and the exam-style plenary from the student lesson, plus the worksheet as the exit task
Learning objectives

By the end of the lesson, learners can

Section by section
  • Why binary?: Click the bits in the lab to switch them on and off.
  • Binary to denary: Write the place values above the bits, then add up the place values of every 1.
  • Denary to binary: Two methods give the same answer.
Key points to leave on the board
  • Place values: 128, 64, 32, 16, 8, 4, 2, 1 for 8 bits; keep doubling for 16 bits.
  • Binary to denary: add the place values of the 1s.
  • Denary to binary: subtract the largest place values that fit, or divide by 2 and read the remainders upwards.
  • Check: convert your answer back the other way.
The core visual model

One picture every idea returns to

Computers process data using logic gates and store it in registers, both made of switches that are either off or on. So all data is represented in binary (base 2), which uses only the digits 0 and 1. People use denary (base 10). In binary each place value is twice the one to its right: 1, 2, 4, 8, 16, 32, 64, 128 ... A single binary digit is a bit; 8 bits make a byte.

8-bit binary place values 128643216 8421 1010 0101 128 + 32 + 4 + 1 = 165 each place is worth twice the one to its right
Fig. 1: the 8-bit binary number 10100101 is 165 in denary
Lesson sequence

Forty-five minutes, phase by phase

TimePhaseWhat happens in the roomGrouping
0 to 5 minHook: predictOpen with the question in the title, Two symbols are enough.. A computer is built from billions of tiny switches that are either off or on. Put the figure on the board: it is the one picture every idea in the lesson returns to.Whole class, then pairs
5 to 13 minTeach and check: Why binary?Click the bits in the lab to switch them on and off. Project tab 1 of the lab (Binary and denary converter) and let a student drive it while the class predicts.Whole class, then pairs
13 to 21 minTeach and check: Binary to denaryWrite the place values above the bits, then add up the place values of every 1. Model the worked example 8 bits on the board, one line at a time. Your turn: Convert 11001001 to denary.Pairs
21 to 30 minTeach and check: Denary to binaryTwo methods give the same answer. Model the worked example Subtract the place values on the board, one line at a time. Your turn: Convert 58 to 8-bit binary.Round Table
30 to 36 minCheckThe four Stage 1 questions from the student lesson, answered on mini whiteboards or by show of fingers. Re-teach the one most get wrong.Individual, then whole class
36 to 43 minPlenaryThe exam-style questions from Stage 2, one at a time: thirty seconds alone, then a random call. The feedback lines in the key give the examiner's wording.Individual, random call
43 to 45 minExit and homeworkSet the worksheet below (6 questions, 13 marks). Learners self-assess against the objectives before they leave.Individual
Timing and contingency

Protect the parts that carry the learning

The sequence carries about fifty minutes of material, so the lab is driven by one student while the class predicts rather than explored freely. Times are a guide.

Protected: the check at 30 minutes. It is the only individual read on whether the key idea landed, and it is not cut.

Cut first if the build overruns: the last check in Denary to binary, never the check or the plenary.

In a 60 minute block: run worksheet questions 1 to 3 in class as a Rally Coach set and model both the hardest worked example and its check live.

Running the cooperative task

Round Table

One sheet travels round the team. Each student adds one line of working or one idea and passes it on, so the solution is built four hands at a time and every contribution is visible.

The full structure, with its variations and the other twelve, is on the cooperative-learning page.

Examiner traps to pre-empt

What to head off, and how

Trap learners fall intoTeaching move that pre-empts it
"Computers use binary because it is easier for them" earns nothing.Say why: the computer is made of switches (logic gates and registers) with only two states, on and off.
Leaving out leading zeros changes nothing in value, but if the question says "8-bit" you must give all 8 bits: 00111010, not 111010.Return to Denary to binary: ask a pair to state the correct version and show it on the lab before moving on.
Worksheet

Why computers use binary: binary and denary: worksheet

6 questions, 13 marks. Written in the style of the papers; no past paper question is reproduced.

NameClassDate
Q1 · explain[2 marks]

Explain why computers represent all data in binary.

Q2 · convert[2 marks]

Convert the binary number 10110110 to denary. Show your working.

Q3 · convert[2 marks]

Convert the denary number 77 to 8-bit binary.

Q4 · convert[2 marks]

Convert the denary number 1000 to 16-bit binary.

Q5 · apply[3 marks]

A sensor stores readings as 8-bit unsigned binary integers. (a) State the smallest and largest readings it can store. (b) A reading of 300 is taken. Explain why it cannot be stored.

Q6 · analysis[2 marks]

A student says 1101 in binary is one thousand one hundred and one. Explain the mistake and give the correct denary value.

Answer key and marking notes
Q1 · 2 marks
  • Computers process and store data using logic gates and registers made of switches (transistors).
  • Each switch has only two states, off and on, which are represented by 0 and 1.
Q2 · 2 marks
  • Place values of the 1s: 128, 32, 16, 4, 2.
  • 128 + 32 + 16 + 4 + 2 = 182.
Q3 · 2 marks
  • 77 = 64 + 8 + 4 + 1.
  • 01001101 (8 bits, with the leading zero).
Q4 · 2 marks
  • 1000 = 512 + 256 + 128 + 64 + 32 + 8.
  • 0000 0011 1110 1000.
Q5 · 3 marks
  • (a) Smallest 0 (00000000); largest 255 (11111111).
  • (b) 300 is larger than 255, the biggest value 8 bits can hold.
  • It would need 9 bits (300 = 100101100).
Q6 · 2 marks
  • Binary place values are 8, 4, 2, 1, not 1000, 100, 10, 1.
  • 1101 = 8 + 4 + 1 = 13.
Quiz

6 multiple-choice questions on this lesson

From the topic question bank. Assign them in the app for a marked score in your gradebook, or run the topic as a class game.

Q11 mark

Why do computers represent all data in binary?

  • ATheir logic gates and registers are made of switches that have only two states, off and on
  • BBinary numbers always take up less storage space than the same numbers in denary
  • CBinary is easier than denary for programmers to read and write
  • DDenary cannot be used to represent numbers larger than 255
Q21 mark

Convert the 8-bit binary number 10010110 to denary.

  • A150
  • B105
  • C151
  • D86
Q31 mark

Convert the denary number 75 to 8-bit binary.

  • A01001011
  • B01001101
  • C11010010
  • D01010011
Q41 mark

What is the largest denary number that can be stored in an 8-bit register?

  • A255
  • B256
  • C128
  • D127
Q51 mark

Convert the 16-bit binary number 0000 0010 0101 1000 to denary.

  • A600
  • B88
  • C536
  • D604
Q61 mark

What is the smallest number of bits needed to store the denary number 300 as an unsigned binary integer?

  • A9
  • B8
  • C3
  • D10
Quiz key
Q1: A

Logic gates and registers are built from switches that are either off (0) or on (1), so data must be held as binary digits. Binary actually needs more digits than denary for the same number, so it does not save space. Humans find binary harder to read, which is why hexadecimal is used. Denary has no 255 limit; that is the limit of an 8-bit binary register.

Q2: A

The 1s sit under 128, 16, 4 and 2: 128 + 16 + 4 + 2 = 150. 105 comes from reading the bits in reverse order (01101001). 151 wrongly includes the 1 place value, which holds a 0. 86 misses the 128 bit and adds 64 instead (64 + 16 + 4 + 2).

Q3: A

75 = 64 + 8 + 2 + 1, so the bits under 64, 8, 2 and 1 are 1: 01001011. 01001101 is 77 (64 + 8 + 4 + 1). 11010010 is the correct bits written backwards (210). 01010011 is 83 (64 + 16 + 2 + 1).

Q4: A

11111111 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. There are 256 different values, but they run from 0 to 255, so 256 itself does not fit. 128 is only the value of the most significant bit. 127 is 01111111, which leaves the top bit unused.

Q5: A

The 1s are under 512, 64, 16 and 8: 512 + 64 + 16 + 8 = 600. 88 converts only the lower 8 bits and ignores the 512 bit. 536 is 512 + 16 + 8, missing the 64. 604 wrongly adds a 4 that is not set.

Q6: A

8 bits can hold at most 255, which is too small. 9 bits hold up to 511, so 300 (100101100) needs 9 bits. 3 is the number of denary digits, not binary digits. 10 bits would work but is not the smallest number.

Lab and demo

What to project

The student lesson embeds these tabs. Open them full screen on the projector; every slider has a drag handle on the stage.

Slides

Slides for this lesson

A projectable deck for every pack is on the way. Until then, present the student lesson full screen: its sections, figure and lab tabs follow the same order as the plan above.

Also for this topic

Everything else you can use

Original work by the TheLucidSTEM team. The worksheet items are written in the style of the papers; no past paper question is reproduced.