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
GCSE Computer Science revision resources

Share this article

Robert Hampton

Reviewer: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

The examiner written revision resources that improve your grades 2x.

Join now