{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

tutorial05

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

This preview shows pages 1–5. Sign up to view the full content.

CS 135 - Winter 2012 Tutorial the Fifth February 8, 2012 CS 135 Winter 2012 06: Tutorial the Fifth 1

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

View Full Document
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
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

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

View Full Document
Clicker Question - Lists Which Scheme expression corresponds to this box-and-pointer diagram? A ( list 1 ) B ( list ( list ( list 1 ))) C ( list ( list ( list ( list 1 )))) D ( list empty 1 ) E ( list empty empty empty 1 ) CS 135 Winter 2012 06: Tutorial the Fifth 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 11

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

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

View Full Document
Ask a homework question - tutors are online