Parameters and the values passed in a call
A name in the subroutine definition that holds the value given in the call while it runs. With PROCEDURE Show(Num : INTEGER), CALL Show(5) makes Num hold 5.
Understanding Parameters and the values passed in a call in IGCSE Computer Science Paper 2
What it does: Both calls run the same procedure. Num holds 5 in the first call and 9 in the second. The variable Score is used in the call, so the parameter Num holds 40 while Show runs. The expression Age * 2 is worked out first, giving 8. That value is passed to the parameter X. The definition should be PROCEDURE Show(Num : INTEGER) with OUTPUT Num. Then CALL Show(5) makes Num hold 5.
Common mistakes: Name is the parameter, so it must not be in quotes. With quotes the program prints the word Name instead of the value in the call. It should be OUTPUT "Hello ", Name. The parameter in the definition is called Num, not Number. Number does not exist, so the line fails. It should be OUTPUT Num * Num.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 399–408) and word search (Modules 399–418).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
parameterFill in the Blanks
Spot the Error
Student with a class code? Join your class →