Programming project: build and test – OCR GCSE Computer Science lesson (J277)
Pupils learn to write their chosen project in stages from starter code, testing each part as they go and the whole program at the end, and refine it when a test fails.
Lesson 9 of 11 in unit 10.6 Protocols and Sorting, taught in Year 10, Summer 2. It answers one big question: How do we know our program really works?
By the end, pupils can write their chosen project in stages from starter code, testing each part as they go and the whole program at the end, and refine it when a test fails.
- The Build (the main task)
- Write your chosen project program from your plan and the starter code, testing each part as you write it, then complete the final test table with three tests.
- Support version
- Part-filled program for each option: the whole program is written with gaps to complete at the key lines.
- Challenge
- Add the 'should' and then the 'could' requirements for your option, testing each one.
- Real-world link
- The café needs the programs working before the tournament on Saturday.
- Key words
- Iterative testing, Final testing and Refine, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Iterative testing happens once, at the end”; “If a program runs with no error message, it works”.
- OCR J277 specification
- 2.1.3 (sorting algorithms: the main steps of bubble sort, merge sort and insertion sort, applying each to a data set and recognising each from its code); 2.2 (programming fundamentals, data types and additional techniques, used together in a planned programming project (arrays, loops, selection, swapping values)); 2.3.2 (testing: the purpose of testing, iterative and final testing, logic errors and refining a program).
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 need computers for the main task.
Also sold in the Protocols and Sorting 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)
- Programming project - build and test - Quiz Quiz Trade Cards
- Single-teacher licence: use and adapt it with your own classes
More for GCSE Computer Science (OCR)
See allPupils learn to compare wired (Ethernet) and wireless (Wi-Fi, Bluetooth) connections, recommend one for a given use, and explain why wireless data is encrypted.
Free sample lessonPupils learn to carry out a bubble sort pass by pass, showing each comparison and swap, and state when the algorithm stops.
Pupils learn to describe the purpose and format of IPv4, IPv6 and MAC addresses and explain which one stays the same when a device changes network.
Written for the specifications named. Not endorsed by or affiliated with any exam board.