Year 10 - Computing
Procedures in programs
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 create and call a procedure in a program.
A procedure is a named block of code that performs a specific task. Procedures are designed to run a sequence of code that does not return any value to the calling program.
an expression that passes control and arguments (if any) to a subprogram. Add one real device or system example to prove understanding.
Mistake: Functions and procedures are just different names for the same thing. Correction: A function is a type of subprogram that returns a value whereas a procedure is a type of subprogram that does not return a value.
Browse all guides in the Year 10 Computing guide library.