Year 10 - Computing
Structured programming
Programming: subroutines
Study Hub
This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.
Year 10 - Computing
Programming: subroutines
In this unit pupils will be introduced to structured programming. They will explore the differences between functions and procedures and use functions to return values in programs. They will be introduced to the concept of scope and how parameters can be used to reduce the need for global variables.
You will learn to describe what is meant by a structural approach to programming and explain the benefit of this approach.
As programs grow in complexity it becomes useful to structure them in a way that is more manageable for the programmer. A structured approach to programming uses a module approach where a program is seperated into subroutines.
a sequence of instructions with an identifiable name that performs a specific task. Add one real device or system example to prove understanding.
Mistake: A program must run line by line from top to bottom. Correction: A subrotuine is an 'out of line' block of code, which is typcially written at the top of a program and then called upon within the main program.
Browse all guides in the Year 10 Computing guide library.