mt2004 - University of Waterloo CS 135 Midterm Exam Fall...

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

View Full Document Right Arrow Icon
University of Waterloo CS 135 Midterm Exam Fall 2004 CS 135: Designing Functional Programs Instructor: Prabhakar Ragde November 1, 2004 Start time: 7:00 PM. End Time: 9:00 PM. Duration: 120 minutes Number of exam pages (including this cover sheet): 12 CLOSED BOOK (UW-supplied calculator permitted) Name: Student Number: Signature: # Points Possible Score Comments 1 10 2 10 3 10 4 10 5 10 6 10 Total 60 Mark 100 Directions Write your name and student ID number on every page. If you need extra paper for a question, use the back of that question’s page. If you need more paper beyond this, ask the proctors for blank pages. It is your responsibility to ensure that any extra pages are stapled to this exam. Please write neatly and legibly, and make proper use of indentation and white space. You are communicating with your markers. 1
Image of page 1

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

View Full Document Right Arrow Icon
Name: Student Number: 1. (10 Points) Given that the following definitions have been processed in the Beginning Student language: ( define n 10 ) ( define m ( * 5 n )) ( define ( f x ) ( * x n )) show the result of the specified number of simplification steps on each of the following expressions. A simplification step consists of one substitution as described by the semantic model of the Beginning Student language. If at any point you cannot carry out a requested simplification step, explain why.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern