Mt2F08eve - Computer Science 1901 Evening Fall 2008 Midterm Exam 2 This is a 75 minute closed book exam Please write all answers on this exam

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

View Full Document Right Arrow Icon
Computer Science 1901 Evening Fall 2008 Midterm Exam 2 This is a 75 minute closed book exam. Please write all answers on this exam booklet. Be sure to put your name and ID# in the space indicated, and sign the statement below. You may use the backs of pages as extra space if needed, but be sure to mark the continuation where appropriate. Partial credit is available on most questions (and may be based on work shown). This exam has 5 questions for a total of 100 points. Use your time wisely keeping point values in mind. I certify that all of the answers on this exam are the results of only my own efforts, and that I have not used outside materials, consulted with others, nor used the work of others in the completion of any part of this exam. I have not provided help to any others during this exam. Signature __________________________________________________ Name (please print) __________________________________________ ID# __________________________ Section ________
Background image of page 1

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

View Full DocumentRight Arrow Icon
1. Pairs and Lists. (20 points) Write an expression to return the *mystery-value* contained within the sequence, s , in each of the parts below. For example, given: (define s (list *mystery-value* 100 200)) (car s) will return the *mystery-value* a. (define s (list (list *mystery-value* 2 3) 1)) b. (define s (cons (list *mystery-value*) 2)) c. (define s (cons *mystery-value* ())) d. (define s ‘(((*mystery-value* 1000)))) e. (define s (list ‘hello ‘(*mystery-value*)))
Background image of page 2
2. Short Answer. (20 points) Fill in the blanks to complete the procedures in the parts below. You may use any of the following
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/21/2011 for the course CSCI 1901 taught by Professor Staff during the Spring '08 term at Minnesota.

Page1 / 7

Mt2F08eve - Computer Science 1901 Evening Fall 2008 Midterm Exam 2 This is a 75 minute closed book exam Please write all answers on this exam

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

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