Section 9.2 Evaluate Functions-WE1-P1
Subgoals for evaluating a function call:.
-
Create stack frame for global variables
-
Ensure function is defined before function call before beginning body of function
-
Determine parameter values based on positional arguments, keyword arguments, and default values to initialize local variables
-
Use stack frame for function to trace local variables
-
At return to call site, pass values back to call site
-
Delete stack frame with local variables after return to call site
Exercises Exercises
2.
3.
4.
5.
You have attempted 1 of 3 activities on this page.