Environment3.init() Environment3.expression Environment3.underlinedExpression Environment3.value Environment3.answer Environment3.hint5

Assume that the following expression is evaluated in a global environment in which x, y, and z are bound to the values 1, 2, and 3, respectively.

expression
underlinedExpression

True or False? In the active environment in which it is evaluated, the underlined variable occurrence in the expression above is bound to the following value:

value

correctAnswer
  • True
  • False

Determine the scope of the binding occurrences in each function definition that this expression contains.

Note that SLang 1 uses static scoping (or static binding).

Match parameters to arguments in function calls.

Remember that the overall expression is evaluated in a global environment that is not empty.

hint5