Physics I / Functions and modular decomposition
Practice question · Put in order

Order the steps of a function call.

Hints
  1. Arguments must be evaluated before control can enter the body.
  2. Control returns to the caller only after the body has finished.
Show the answer
  1. Caller evaluates arguments
  2. Arguments bound to parameters
  3. Function body executes
  4. Return value sent back to caller
Why

Execution flows from argument evaluation through to the return.

Read the lesson: Functions and modular decomposition →

Practise Functions and modular decomposition

The app has 11 more questions on this lesson, and keeps your place in the course. Physics I is free to start.

More questions on Functions and modular decomposition