CS212 Exams
Spring 1998 - Prelim
2

Environment Model


Consider the following global environment (denoted by the double box).

  1. Assuming you start with an empty *global-env*, write a sequence of Scheme definitions that results in the *global-env* drawn above.





  2. Draw the new *global-env* that results after evaluating the expression (f x) in the *global-env* drawn above. (HINT: be careful).






Solution

Return to CS 212 Prelim 2 - Spring 1998