Skip to content

Functions, call frames and returned results

Introduced
Handout
Vocabulary
English Meaning
function/ˈfʌŋkʃn/A mapping that assigns exactly one output to each allowed input.
side effect/saɪd ɪˈfekt/Anything a function does besides returning a value, such as printing or changing a global.
contract/ˈkɒntrækt/The stated agreement of what callers may supply and what a function promises in return.
parameter/pəˈræmɪtə/A named input in a function or procedure definition that receives a supplied argument when it is called.
argument/ˈɑːɡjuːmənt/Values or references supplied to a function or procedure when it is called.
call frame/kɔːl freɪm/One paused function call: its own variables, waiting for the callee to return a value.
scope/skəʊp/The region of a program in which a particular name or binding can be accessed.
local variable/ˈləʊkl ˈveərɪəbl/A variable whose name is accessible only within a particular function, block or other limited scope.
decomposition/ˌdiːkɒmpəˈzɪʃn/The breakdown of a substance or system into simpler components.

Handout

Log in or create account

IGCSE, A-Level & AP