CIS 352   —   SPRING 2008

Exam 1: Scope and Practice


When, Where, and How

Coverage

Through Chapter 2 of Dybvig and Chapter 1 of EOPL.

You should be familiar with the following:

Procedures and related things
  • anonymous procedure
  • higher-order procedure
  • variable-arity procedure
  • BNF specification
  • first-class values
  • special form
Static properties
  • bound variables (and "occurs bound")
  • capture of a free variable
  • free variables (and "occurs free")
  • binding occurrence of a variable (also: bound occurrence, free occurrence)
  • hole in the scope
  • region
  • scope
  • shadowing
  • lexical address

You should be familiar with (and able to use) the following Scheme procedures and special forms.

Common predicates

List-related procedures


Higher-order procedures


Special forms


Miscellaneous


You should be prepared for the following kinds of questions:
  1. Write a Scheme procedure to do X, where X involves one or more of the following:
  2. What are the values of the following expressions?

  3. Consider the following BNF specification for <banf>. Are the following expressions members of <banf>?

  4. Which variables occur {free,bound} in the following expression?

  5. What is the scope of the variable x defined on line k? What is this variable's lexical address?

Practice


Back to the CIS 352 Homepage
Jim Royer /