Sub-programs - GCSE Computer Science Definition
Reviewed by: Robert Hampton
Published
In computer science, a sub-program is a small section of a program designed to perform a specific task. It's like a mini-program within a larger program that helps to break down complex tasks into simpler, more manageable parts. Sub-programs can be called multiple times from different places in the main program, which makes coding more efficient and easier to read. They come in two main types: functions, which return a value, and procedures, which do not. Using sub-programs helps programmers avoid repeating code, making the program easier to update and debug.
Examiner-written GCSE Computer Science revision resources that improve your grades 2x
- Written by expert teachers and examiners
- Aligned to exam specifications
- Everything you need to know, and nothing you don’t

Share this article