val: <w, if w then (f proc(x)1) else w, {f=<g, *((g 3), 4), {}>, {}}> cnt: [app <g, *((g 3), 4), {}>, [done]]
Express your answer as a function answer-for-11.1 that takes no arguments and returns a list of 5 numbers.
Exercise 11.2, Exceptions
The following are possible states of the interepreter with exceptions. In each case, what will the final value of the program be, or which unhandled exception will it terminate with?
Express your answer as a function answer-for-11.2 that takes no arguments and returns a list of 7 elements, where each element is a 2-element list, either '(val n) or '(exn n). An element should be '(val n) if its expression produces the number n, and it should be '(exn n) if its expression raises the unhandled exception n.