Programming Practice Tasks

These are some of the programming tasks that I give to my GCSE students to practise their skills - once they have mastered the basics. PRIMM can be effective for beginners, like a worked example in Maths, but as it tends to suggest a solution, I rarely use it at this stage. We discuss possible solutions and techniques at the start of the lesson and recap techniques as necessary. I would encourage the more confident students to come up with their own solutions, possibly using techniques such as recursion and object-oriented programming.

Discussion before the task would include questions such as:

There is a separate page on OCR Coding Challenges, but I have included two tasks from Advent of Code so that students don't need to log in to get the data files. I came up with a lot of these ideas myself, but I can't remember where some of them came from, so please let me know if any of them is yours and I'll credit you. You might like to refer to the programming examples for examples of various techniques.

A lot of the tasks are described using a series of numbered points. The idea is that students start with number one and go as far as they are comfortable with. They will be familiar with this idea from Maths homeworks, e.g. with Bronze, Silver and Gold questions.

You can download a Python guide for GCSE (aimed at OCR as it contains some ERL, but you can edit that out) and a page containing tips on how to become a more confident programmer. I also encourage students to use a programming checklist so that they get used to thinking about the contructs used and naming them correctly.

NB. Practice is most effective when it targets a particular technique, and doesn't just do the same thing repeatedly. That's why there is no prescribed order or level of difficulty - the task you should choose depends on the order in which you've learnt the programming concepts and which particular technique you'd like to develop.

Filter

Note that we all have our own idea of what's difficult, and the tasks are tagged with the techniques that I would use - other people may approach them differently. NB. Tick nothing and click Search to see all of the tasks.

Techniques used:
Content links:

Ten Most-Recently Added Tasks

These are the ten most-recently added tasks (newest at the top) - click Search to see the full list, or tick the boxes to filter the matches.

NB. Tasks marked with a † use concepts that students should recognise from GCSE Maths (although some topics might be higher-tier only), and ‡ indicates links to GCSE Science.

Non-Programming Tasks

Notes

¹ something more complex than just if n == 0..., e.g. match... case

² such as indices, integer division or modular arithmetic

³ e.g. concatenation, string-slicing, changing case

⁴ such as the use of ASCII codes or Unicode characters

⁵ something more complex than a one-dimensional array/list, e.g. 2D list or dictionary