Computer Science 61A - Fall 1998 - Harvey - Final

Computer Science 61A - Fall 1998 - Harvey - Final - CS 61A...

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

View Full Document Right Arrow Icon
CS 61A Final --- December 16, CS 61A Final - December 16, 1998 Your name login cs61a- This exam is worth 30 points, or about 21% of your total course grade. It contains ten questions. This booklet contains eight numbered pages including the cover page. Put all answers on these pages, please; don't hand in stray pieces of paper. This is an open book exam. When writing procedures, don't put in error checks. Assume that you will be given arguments of the correct type. Question 1 (2 points): In the twenty-one project, which of the following are higher-order procedures? Check all correct answers. ___ (best-value hand) ___ (stop-at-17 my-hand dealer-card) ___ (play-n strategy n) ___ (stop-at n) ___ (majority strat1 strat2 strat3) Question 2 (2 points): (define (foo x) (if x (foo #f) 5)) (define (baz x) (and x (baz #f) 5)) What is the value of (foo 3) ? What is the value of (baz 3) ? Question 3 (2 points): In question 2 above, one of the procedures foo and baz generates a recursive process; the other file:///C|/Documents%20and%20Settings/Jason%20Raft. ..%20Fall%201998%20-%20Harvey%20-%20Final%20Exam.htm (1 of 4)1/27/2007 6:27:31 PM
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS 61A Final --- December 16, generates an iterative process. Which is which, and in one English sentence , explain why. Your name login cs61a-
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This test prep was uploaded on 04/20/2008 for the course CS 61A taught by Professor Harvey during the Fall '08 term at University of California, Berkeley.

Page1 / 4

Computer Science 61A - Fall 1998 - Harvey - Final - CS 61A...

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

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