Matching argument values to parameter types and order
Each value in a call must match its parameter in number, order and data type, so a STRING cannot go to an INTEGER parameter and values cannot be swapped or left out.
Understanding Matching argument values to parameter types and order in IGCSE Computer Science Paper 2
What it does: The STRING comes first and the INTEGER second, which matches the order and the types of the parameters. 7.5 is a REAL number, so it matches a REAL parameter. It would not match an INTEGER parameter. There are two parameters, so the call needs exactly two values. Leaving one out is an error. The computer does not fix a bad call. If the number, order or data type is wrong, the program has an error. The same rules apply to functions. N is an INTEGER parameter, so a STRING value is a data type mismatch.
Common mistakes: The call passes the whole number 42, so the parameter must be INTEGER. A STRING parameter does not match the INTEGER value in the call. It should be PROCEDURE Show(N: INTEGER). "7" in quotes is a STRING, but the parameter N is an INTEGER. The value in the call must match the parameter's data type. It should be CALL Double(7).
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 409–418) 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
CALL Name(value1, value2)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →