ࡱ> (*'a Ljbjb L,  , ,RIh$@ Pv@D0 $@,,Dpd,,pName: ___________________________ Scheme Quiz 7 24 Nov, 2008 Closed-book, closed-notes, ten minutes. There are two questions, four parts each. Read both questions before starting. 1) For each of the following lists in "cons" notation, write an equivalent in "list" notation. a) empty b) (cons 3 empty) c) (cons "hi" (cons "ho" empty)) d) (cons "a" (cons "e " (cons "i" (cons "o" (cons "u" empty))))) 2) For each of the following lists in "list" notation, write an equivalent in "cons" notation. (list) (list 5) (list 5 2) (list (list "a" "b") (list) "c") Hint: this one is tricky! 116JKLƼƼhU%phJ5CJhU%phJCJhU%phJCJOJQJhJhJ5OJQJhJhJOJQJhJhJCJOJQJ "#1> 2SKL & F@^gdJ $h@^ha$gdJ $a$gdJ$a$gdJgdJgdJ$a$gdJL/ =!"#$%D@D NormalCJOJPJQJmH sH tH DA@D Default Paragraph FontZiZ  Table Normal :V 4 l4a _H(k(No List 0>@0 Title$a$CJ$6J@6 Subtitle$a$CJ2B@2 Body TextCJL!z zL_"#1> 2SKN000000000000pƀ0 0 0 0 00pƀ"#1> 2SN0`ʀ0`ʀ0`ʀ0`ʀ0`ʀ0`ʀ 0`ʀ 0`ʀ 0`ʀ 0`ʀ 0`ʀLLLrsN>I$(6:W[ N:::::::::  &% U~R>e4R7Kxڝhh^h`o() hh^h`hH) ^`hH) 88^8`hH) ^`hH() ^`hH() pp^p`hH()   ^ `hH. @ @ ^@ `hH.   ^ `hH.^`o()^`.pLp^p`L.@ @ ^@ `.^`.L^`L.^`.^`.PLP^P`L.^`o() ^`hH. L^`LhH. x x ^x `hH. H H ^H `hH. L^`LhH. ^`hH. ^`hH. L^`LhH.^`5o(. ^`hH. pLp^p`LhH. @ @ ^@ `hH. ^`hH. L^`LhH. ^`hH. ^`hH. PLP^P`LhH.^`o() ^`hH. pLp^p`LhH. @ @ ^@ `hH. ^`hH. L^`LhH. ^`hH. ^`hH. PLP^P`LhH.&%7Kx>eU         Kl        sj                 "1>RSNQQQQQQQ@0@@L0 @UnknownGTimes New Roman5Symbol3 Arial3Times"Ah&&.cfR$>4d>I `D Syntax QuizAdelphi Stephen Bloch$       Oh+'0t  $ 0 < HT\dl' Syntax QuizAdelphiNormalStephen Bloch4Microsoft Word 11.3@Ik@  Syntax Quiz Title  !"#$%&)Root Entry Fޖ,N+1Table WordDocumentSummaryInformation(DocumentSummaryInformation8CompObjX FMicrosoft Word DocumentNB6WWord.Document.8