Setting up: the IDE, Python and OCR pseudocode – OCR A Level Computer Science lesson (H446)
Students learn to name the debugging tools in their IDE and write a short algorithm in both Python and OCR exam pseudocode.
Lesson 1 of 16 in unit 12.2 Programming Foundations and Computational Thinking, taught in Year 12, Autumn 1. It answers one big question: What tools and habits help programmers write code others can read?
By the end, students can name the debugging tools in their IDE and write a short algorithm in both Python and OCR exam pseudocode.
- The Build (the main task)
- Write a program for Fernbridge CycleShare that asks for the length of a hire in minutes and outputs the charge of £1.50 for each started 30 minutes, in Python and in OCR pseudocode (5 marks).
- Support version
- A Parsons problem: the Python lines given jumbled, and a pseudocode skeleton with the keywords in place for students to complete.
- Challenge
- Explain two features of the IDE that would help a programmer find why the program charges £4.50 for a 60-minute hire.
- Real-world link
- Students meet Fernbridge CycleShare, the fictional city of Fernbridge's bike-hire scheme (60 docking stations, 900 bikes): the unit's running context.
- Key words
- Integrated development environment (IDE), Pseudocode and Convention, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Saying an IDE makes programming 'easier' or 'quicker' is a full answer”; “Pseudocode can be any loose English, with no structure”.
- OCR H446 specification
- 2.2.1 (e).
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 need computers for the main task.
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 allStudents learn to identify sequence, selection and iteration in code, and choose between IF, ELSEIF and SWITCH for a task.
Students learn to choose the correct primitive data type for each item of data and use casting to convert between types.
Students learn to write count-controlled and condition-controlled loops in Python and pseudocode, and state when WHILE and DO … UNTIL test their conditions.
Written for the specifications named. Not endorsed by or affiliated with any exam board.