tutorial05

tutorial05 - CS 135 - Winter 2012 Tutorial the Fifth...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 135 - Winter 2012 Tutorial the Fifth February 8, 2012 CS 135 Winter 2012 06: Tutorial the Fifth 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Clicker Question - Nested Lists ( cons ( cons 5 ( cons 4 empty )) ( cons ( cons 3 empty ) ( cons ( cons 2 ( cons 5 empty )) ( cons 5 ( cons 4 empty ))))) Which of the following lists is equivalent to the one above? A ( list 5 4 3 2 5 5 4 ) B ( list ( list 5 4 3 ) ( list 2 5 ) 5 4 ) C ( list ( list 5 4 ) ( list 3 ) ( list 2 5 ) 5 4 ) D ( list ( list 5 ) ( list 4 ) ( list 3 ) ( list 2 ) ( list 5 ) ( list 5 ) ( list 4 )) E ( list ( list 5 4 ) ( list 3 ) ( list 2 5 ) ( list 5 4 )) CS 135 Winter 2012 06: Tutorial the Fifth 2
Background image of page 2
Clicker Question - Nested Lists Which Scheme expression corre- sponds to this box-and-pointer di- agram? A ( list ( list 1 4 7 ( list 2 5 8 ( list 3 6 9 )))) B ( list 1 4 7 2 5 8 3 6 9 ) C ( list 1 4 7 ( list 2 5 8 ) ( list 3 6 9 )) D ( list ( list 1 4 7 ) ( list 2 5 8 ) ( list 3 6 9 )) E ( list 1 2 3 4 5 6 7 8 9 ) CS 135 Winter 2012 06: Tutorial the Fifth 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/02/2012 for the course CS 135 taught by Professor Vasiga during the Winter '07 term at Waterloo.

Page1 / 11

tutorial05 - CS 135 - Winter 2012 Tutorial the Fifth...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online