Single lesson · Written for OCR A Level (H446)

Thinking logically: decisions and flow – OCR A Level Computer Science lesson (H446)

Students learn to identify the decision points in a solution, write the logical condition for each and explain how each decision changes the flow of the program.

Also in a bundle Programming Foundations and Computational Thinking – OCR A Level Computer Science lessons (H446) 16 lessons for £45 · save 29% on buying separately

Lesson 12 of 16 in unit 12.2 Programming Foundations and Computational Thinking, taught in Year 12, Autumn 1. It answers one big question: Where does a program make decisions, and what decides them?

By the end, students can identify the decision points in a solution, write the logical condition for each and explain how each decision changes the flow of the program.

The Build (the main task)
Identify the decision points in Fernbridge CycleShare's 'unlock a bike' algorithm, write the logical condition for each in OCR pseudocode, and explain how each one affects the flow (6 marks).
Support version
A flowchart of the algorithm with empty decision diamonds, the conditions on cards to place, and a list of operators (==, !=, <, >=, AND, OR, NOT).
Challenge
Rewrite one condition using NOT and show with a truth table that it gives the same outcome.
Real-world link
Fernbridge CycleShare's dock unlocks a bike only when the rider and the bike pass every check.
Key words
Logical condition, Decision point and Outcome, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“The decision is the action that follows it”; “'Not equal to' is written =!”.
OCR H446 specification
2.1.4 (a)–(c).

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.

Students can do it all on paper.

Also sold in the Programming Foundations and Computational Thinking unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.

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 A Level Computer Science

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.