Single lesson · Written for OCR J277

Writing code on paper in OCR Exam Reference Language – OCR GCSE Computer Science lesson (J277)

Pupils learn to read and write algorithms in OCR Exam Reference Language, using its loops, selection, arrays and file commands precisely.

Also in a bundle Systems Software, Languages and Data Handling – OCR GCSE Computer Science lessons (J277) 13 lessons for £39 · save 25% on buying separately

Lesson 9 of 13 in unit 11.2 Systems Software, Languages and Data Handling, taught in Year 11, Autumn 2. It answers one big question: How do we write precise code on paper for the exam?

By the end, pupils can read and write algorithms in OCR Exam Reference Language, using its loops, selection, arrays and file commands precisely.

The Build (the main task)
Write an algorithm in OCR Exam Reference Language that stores the weights of five dogs in an array, then outputs their mean weight and how many weigh over 30 kg.
Support version
Part-filled algorithm: the array and FOR loop lines are given, with gaps for the total, the IF and the outputs.
Challenge
Rewrite the algorithm to read the weights from weights.txt until the end of the file.
Real-world link
The vet nurse's weighing records are turned into an algorithm on paper before the developer codes it.
Key words
Exam Reference Language, Pseudocode and Precise, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“for i = 0 to 4 in Exam Reference Language stops before 4, like Python's range(0, 4)”; “Indentation alone ends a block in Exam Reference Language, as in Python”.
OCR J277 specification
2.1.2 (designing, creating and refining algorithms: writing and completing algorithms in OCR Exam Reference Language for Paper 2); 2.2.1.

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 Systems Software, Languages and Data Handling 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 all

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