CS212 Exams
Spring 1999 - Prelim
2

Zardoz


Write a definition for zardoz such that the following expression always evaluates to 42:

(* (zardoz) (zardoz))

Your definition should not change the meaning of *. Note also that (* (sqrt 42) (sqrt 42)) is not equal to 42 within Scheme due to rounding errors.


Solution

Return to CS 212 Prelim 2 - Spring 1999