Practice question · Put in order
Order the steps of a function call.
- Caller evaluates arguments
- Function body executes
- Arguments bound to parameters
- Return value sent back to caller
Hints
- Arguments must be evaluated before control can enter the body.
- Control returns to the caller only after the body has finished.
Show the answer
- Caller evaluates arguments
- Arguments bound to parameters
- Function body executes
- Return value sent back to caller
Why
Execution flows from argument evaluation through to the return.
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.