CS61A_fa05_mt1 - CS 61A Midterm#1 Your name Login cs61a Discussion section number TA's name This exam is worth 40 points or about 13 of you total

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

View Full Document Right Arrow Icon
CS 61A Midterm #1 – September 28, 2005 Your name ____________________________________ Login: cs61a - ________ Discussion section number _________ TA’s name ____________________________________ This exam is worth 40 points, or about 13% of you total course grade. The exam contains 6 substantive questions, plus the following: Question 0 (1 point): Fill out this front page correctly and put your name and login correctly at the top of each of the following pages. This booklet contains 6 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. Our expectation is that many of you will not complete one or two of these questions. If you find one question especially difficult, leave it for later; start with the ones you find easier.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Question 1 (7 points): What will Scheme print in response to the following expressions? If an expression produces an error message, you may just write “error”; you don’t have to provide the exact text of the message. If the value of an expression is a procedure, just write “procedure”; you don’t have to show the form in which Scheme prints procedures. (* (+ 5)) _______________ (se ‘(a) (word ‘b ‘c)) _______________ (every (bf x) ‘(ab cd ef gh)) _______________ (let ((k keep)) (k even? ‘(1 2 3))) _______________ (word (first ‘(cat)) (butlast ‘dog)) _______________ ((word ‘but ‘first) ‘plop) _______________ (cond (‘hello 5) (#t 6) (else 7)) _______________
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 note was uploaded on 11/23/2010 for the course CS 61A taught by Professor Harvey during the Fall '08 term at University of California, Berkeley.

Page1 / 6

CS61A_fa05_mt1 - CS 61A Midterm#1 Your name Login cs61a Discussion section number TA's name This exam is worth 40 points or about 13 of you total

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