Logic diagrams with more than one gate – OCR GCSE Computer Science lesson (J277)
Pupils learn to draw logic diagrams with up to three inputs from a Boolean expression, write the expression for a diagram, and complete the truth table.
Lesson 9 of 11 in unit 10.3 Binary, Boolean Logic and Iteration, taught in Year 10, Spring 1. It answers one big question: How do we combine gates to make bigger decisions?
By the end, pupils can draw logic diagrams with up to three inputs from a Boolean expression, write the expression for a diagram, and complete the truth table.
- The Build (the main task)
- Draw the logic diagram for the smart alarm Q = (D AND S) OR P, where D is the door opening, S is the alarm being set and P is the panic button. Then complete its truth table on your worksheet.
- Support version
- Part-filled truth table with an extra column for D AND S, and the logic diagram with its gates drawn but not joined.
- Challenge
- Write the Boolean expression for a diagram that uses a NOT gate, and say which inputs make its output 1.
- Real-world link
- The alarm sounds if a door opens while the alarm is set, or whenever someone presses the panic button.
- Key words
- Logic diagram, Boolean expression and Combine, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “You can work out the final output by reading the expression left to right, without working out each gate first”; “A truth table with three inputs needs 6 rows”.
- OCR J277 specification
- 2.4.1 (boolean logic: AND, OR and NOT gates, their symbols and truth tables; logic diagrams and Boolean expressions with up to three inputs; applying logical operators in programs).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Pupils can do it all on paper.
Also sold in the Binary, Boolean Logic and Iteration unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for GCSE Computer Science (OCR)
See allPupils learn to order the units of data from bit to petabyte and convert between them, stating why all data is stored in binary.
Free sample lessonPupils learn to trace and write FOR loops that use range() with a start, stop and step, and use the loop variable inside the loop.
Pupils learn to convert between denary numbers from 0 to 255 and 8-bit binary using place values.
Written for the specifications named. Not endorsed by or affiliated with any exam board.