Unit 11 Study Guide
- Explain the benefits of subprograms.
- Describe the difference between procedures and functions, and discuss
support for each type in various languages.
- Describe the difference between formal and actual parameters.
- Explain the various parameter-passing methods (pass-by-value,
pass-by-reference, pass-by-name) and where they are useful. Compare their
efficiency and overhead. Trace an example program's execution under each
scheme.
- Explain the standard call stack method of function implementation. Draw
and label a stack for an example execution point.
- Compare and contrast the various methods for passing functions as
parameters.
- Compare and contrast the various ways to implement generic methods.