1 / 4

6.001 Recitation 9: Quiz 1 Review

This webpage provides information and resources for the 6.001 Recitation 9 Quiz 1 Review, taught by Gerald Dalley. Topics covered include common procedures, Lambda calculus, and Jeopardy rules. The page also includes links to old quizzes and cheat sheets.

hansenj
Download Presentation

6.001 Recitation 9: Quiz 1 Review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 6.001 Recitation 9:Quiz 1 Review RI: Gerald Dalley (dalleyg@mit.edu) http://people.csail.mit.edu/dalleyg/6.001/SP2007/ 7 Mar 2007

  2. Announcements • Daylight Savings Time change: lose 1 hour Sunday morning. • Cheat sheets • Oops, 2 are allowed, but more than 1 is probably pointless • Handwritten or printed: either is okay • Old Quizzes: • http://web.mit.edu/amdragon/www/6.001-07-sp/quizzes.html • No recitation on Friday

  3. Common procedures you should know and love (define (length lst) (if (null? lst) 0 (+ 1 (length (cdr lst)))))(define (map proc lst) (if (null? lst) '() (cons (proc (car lst)) (map proc (cdr lst)))))(define (filter pred lst) (cond ((null? lst) '()) ((pred (car lst)) (cons (car lst) (filter pred (cdr lst)))) (else (filter pred (cdr lst)))))(define (fold-right op init lst) (if (null? lst) init (op (car lst) (fold-right op init (cdr lst)))))

  4. λeopardy Rules • Write your answer on the board • Turn around and raise your hand • Team consultation allowed • Round-robin answering • Scoring • Correct answer: responder gets points • Successful challenge: challenger gets points, responder loses points • Failed challenge: challenger loses points • Wrong answer: responder loses points • Trick questions are fair game! Start!

More Related