DOC PREVIEW
MIT 6 001 - Quiz 1 Review - 6.001

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

6.001 Recitation 9: Quiz 1 ReviewAnnouncementsCommon procedures you should know and loveλeopardy Rules6.001 Recitation 9:Quiz 1 ReviewRI: Gerald Dalley ([email protected])http://people.csail.mit.edu/dalleyg/6.001/SP2007/ 7 Mar 2007Announcements•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 FridayCommon 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)))))λeopardy Rulesλ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


View Full Document

MIT 6 001 - Quiz 1 Review - 6.001

Documents in this Course
Quiz 1

Quiz 1

6 pages

Databases

Databases

12 pages

rec20

rec20

2 pages

Quiz II

Quiz II

15 pages

Streams

Streams

5 pages

Load more
Download Quiz 1 Review - 6.001
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Quiz 1 Review - 6.001 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Quiz 1 Review - 6.001 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?