Procedures with two or three parameters
Several parameters are separated by commas, each with its own data type. A call gives one value for each, in the same order, such as CALL Show("Sam", 14).
Understanding Procedures with two or three parameters in IGCSE Computer Science Paper 2
What it does: Three parameters are listed with a comma between each one and each has its own type. "Mia" matches Name : STRING and 15 matches Age : INTEGER, in the same order as the header. A call gives one value for every parameter in the header. The first value is given to the first parameter and the second value to the second parameter. There are three parameters, so the call must supply three values in the same order. Age is an INTEGER, so the second value must be a whole number, not a STRING. Several parameters must be separated by commas in the procedure header.
Common mistakes: Parameters must be separated by commas, not a semicolon. The header should be PROCEDURE Pay(N:STRING,P:REAL). H is not a parameter of Area. The procedure only has L and W, so the body must use L * W.
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
PROCEDURE Show(Name : STRING, Age : INTEGER)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →