Binary, Logic and Iteration – AQA GCSE Computer Science lessons (8525)
13 AQA 8525 lessons on bits and bytes, binary, hex, shifts and logic gates, with FOR, WHILE and REPEAT…UNTIL loops.
Pupils learn how a computer represents every value in binary: units of information and the decimal prefixes, converting between binary, decimal and hexadecimal, adding up to three binary numbers and logical binary shifts. They meet the NOT, AND, OR and XOR gates, build truth tables and logic circuits with up to three inputs and write Boolean expressions with AQA's symbols. On the programming track they learn definite and indefinite iteration, including REPEAT…UNTIL, and nested iteration, all set in one smart home hub.
Unit 10.3 is taught in Year 10, Spring 1, and answers one big question: How do 0s and 1s become numbers, decisions and repeats? Every lesson uses the same real-world context (one smart home hub runs through the unit: the doorbell's memory card, the thermostat, the smart bulbs, the porch light, the alarm, the door lock and the heating), and pupils make smart home programs that set the heating each day, unlock the door with a PIN, switch off every light and control the porch light. The careers link is an embedded systems engineer: engineers write the binary, logic and loops that run smart devices.
What happens in each lesson:
Lesson 1, Units of information: bits, bytes and prefixes: How do we measure how much data there is? Main task: calculate how many bits there are in 3 kilobytes. Show your working. (2 marks) Convert 24 000 000 bits to megabytes. Show your working. (2 marks) Write these in order of size, smallest first: 1.5 GB, 900 MB, 2 TB, 2 000 000 kB. (2 marks)
Lesson 2, Definite iteration: FOR loops: How can a program repeat steps a set number of times? Main task: write a program that uses a FOR loop to output the day number and the temperature setting for each of the 7 days. (4 marks) Write the same loop in AQA pseudo-code. (2 marks)
Lesson 3, Binary and decimal: How does a computer write any number using only 0 and 1? Main task: explain why computers use binary to represent all data and instructions. (2 marks) Convert the binary number 10011110 into decimal. Show your working. (1 mark) Convert the decimal number 201 into 8-bit binary. Show your working. (1 mark)
Lesson 4, Adding binary numbers: How do we add three binary numbers without a calculator? Main task: calculate the sum of the three binary numbers. Give your answer in binary and show your working. (2 marks) Check your answer by converting the three numbers and your answer to decimal. (2 marks)
Lesson 5, Indefinite iteration: WHILE and REPEAT…UNTIL: How can a program keep repeating until something changes? Main task: write a program that keeps asking the user to enter the PIN until the correct PIN, 4721, is entered, then outputs Door open. (5 marks) Explain one difference between a WHILE loop and a REPEAT…UNTIL loop. (2 marks)
Lesson 6, Binary shifts: How can sliding the bits multiply or divide a number? Main task: give the result of shifting the bit pattern 00010110 two places to the left. Write all of its bits. (1 mark) State the arithmetic effect of shifting a binary number three places to the right. (1 mark) Give one situation where a binary shift can be used. (1 mark)
Lesson 7, Hexadecimal: Why do computer scientists write binary as hexadecimal? Main task: explain why hexadecimal is often used in computer science. (2 marks) Convert the hexadecimal number 5C into binary. Show your working. (2 marks) Convert the binary number 10111001 into hexadecimal. Show your working. (2 marks)
Lesson 8, Nested iteration: What happens when one loop runs inside another? Main task: complete the trace table for the algorithm. (4 marks) Write a program that outputs each room number from 1 to 3 with each of its 4 light numbers, for example Room 1 light 1. (4 marks)
Lesson 9, Logic gates: NOT, AND, OR and XOR: How can tiny switches make decisions? Main task: complete the truth table for the XOR gate (1 mark). Draw the symbols for the NOT, AND, OR and XOR gates (2 marks). State which gate gives an output of 1 only when both of its inputs are 1 (1 mark).
Lesson 10, Logic circuits with up to three inputs: How do we combine gates to make bigger decisions? Main task: complete the truth table for the logic circuit shown (4 marks). Draw a logic circuit for this rule: the alarm sounds if the door is open AND the system is armed, OR the panic button is pressed (3 marks).
Lesson 11, Boolean expressions: How can a whole logic circuit be written on one line? Main task: write the Boolean expression for the logic circuit shown. You must use AQA's Boolean symbols (2 marks). Draw the logic circuit for D = (A . B) + C̅ (3 marks).
Lesson 12, Boolean logic in programs: How do logic gates show up in the code we write? Main task: write a program that inputs whether it is dark, whether someone is at the door and whether the light has been switched off manually (each as Y or N). It must output Light on if it is dark AND someone is there AND the light has NOT been switched off, and Light off otherwise. Apply the rule with one condition that uses Boolean operators. (5 marks)
Lesson 13, Progress Check: 30 multiple-choice questions (set as homework or at the start of the next lesson) + a 40-minute written test of 40 marks: 24 marks in Paper 2 style (conversions, addition, shifts, units, logic) and 16 in Paper 1 style (a nested loop trace and a WHILE program)
- Misconceptions it tackles include
- “A kilobyte is 2 to the power 10 bytes”; “FOR i ← 1 TO 5 runs four times”; “Binary only stores numbers”. Each is planned into a hinge question before the main task or an exit question, so you find out who still holds it.
AQA GCSE Computer Science (8525) specification coverage: 3.3.1, number bases: decimal, binary and hexadecimal; why hexadecimal is used; 3.3.2, converting between number bases (0–255); 3.3.3, units of information: bit, byte, kB, MB, GB, TB; 3.3.4, binary arithmetic: adding up to three binary numbers; logical binary shifts; 3.4.2, boolean logic: NOT, AND, OR and XOR gates, truth tables, logic circuits and Boolean expressions; 3.2.2, programming concepts: definite, indefinite and nested iteration.
It builds on 10.1 and 10.2: data types, selection, conditions and Boolean operators, main memory and storage. It leads on to 10.4 Characters, Images, Sound, Strings and Data Structures (binary for text, images and sound; loops over strings and arrays), 10.5 (Huffman codes, searching), and every later program.
- Adapting it for your school
- Lesson 12 (Boolean logic in programs) is the flex lesson. No calculators in any lesson: AQA does not allow them on either paper. Lessons 2, 5, 8 and 12 need computers; the rest are paper lessons.
Choose your school's Paper 1 language when you buy: C#, Python or VB.NET. You get that language's files: every program, code example, worked answer and programming task is written in it, and lessons with no code are the same in all three. Algorithms are also shown in AQA pseudo-code, as in the exam.
An independent resource written for AQA GCSE Computer Science (8525). It is not endorsed by AQA.
What's included
- 13 lesson slide decks (PowerPoint)
- 13 lesson plans (Word)
- 13 worksheets, plus 12 support versions with scaffolds (Word)
- 1 exam-style paper with mark scheme (Word)
- Medium term plan with intent, key words, misconceptions and adaptive teaching notes (Word)
- Progress Check lesson to assess the unit
- Boolean logic in programs - Quiz Quiz Trade Cards
- Department licence: every teacher in your department can use and adapt it
- Your choice of Paper 1 language: C#, Python or VB.NET
In this bundle
Worth £52 bought separately at £4 a lesson. The bundle saves you 25%.
More for GCSE Computer Science (AQA)
See all13 AQA 8525 lessons on algorithms, the CPU, fetch-execute and embedded systems, with first programs in C#, Python or VB.NET.
Free sample lesson12 AQA 8525 lessons on main memory, RAM, ROM and secondary storage, with IF, ELSE IF, nested selection and Boolean conditions.
Free sample lesson11 AQA 8525 lessons on ASCII and Unicode, images, sound and file sizes, with strings, arrays, 2D arrays and records.
Free sample lessonWritten for the specifications named. Not endorsed by or affiliated with any exam board.