Parameter
An identifier in a subroutine definition that receives a value when the subroutine is called. It is used like a variable inside the subroutine and has a data type.
Understanding Parameter in IGCSE Computer Science Paper 2
What it does: Num is a parameter, and the body uses it in a calculation just like a normal variable. The value 20 in the call is passed to the parameter Price in the definition, replacing it for that call. Each parameter needs a data type, so Score : INTEGER is correct. Cambridge 0478 questions use subroutines with up to three parameters. The definition lists parameter names with their data types. It never contains values like 5. The value "Sam" is substituted for the parameter Name, so inside the procedure Name holds "Sam". A subroutine can have more than one parameter (up to three in this course), and each one receives its own value.
Common mistakes: The parameter is called Name, so the body must use Name. Person was never declared, so it holds no value. It should be OUTPUT "Hi ", Name. Every parameter in a subroutine definition needs a data type. It should be PROCEDURE Sq(Num : INTEGER).
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 →