Calling a function
Calling a function by writing its name followed by arguments in brackets, running its instructions and possibly producing a value
Understanding Calling a function in QCE Digital Solutions Unit 1
What it does: This description matches calling a function, which runs its defined instructions. A function call is written as the function name followed by its arguments in brackets, like addNumbers(3, 4). Function calls can appear inside the body of another function or the main algorithm. This line calls addNumbers and stores its returned value in the variable total.
Common mistakes: Calling a function requires brackets around the arguments, such as addNumbers(3, 4). Calling a function requires brackets around the arguments, such as addNumbers(3, 4).
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 158–380) and word search (Modules 82–380).
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
addNumbers(3, 4)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →