quiz3-fall11

quiz3-fall11 - CMSC330 Fall 2011 Quiz #3 Name Discussion...

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

View Full Document Right Arrow Icon
Name Discussion Time (circle one): 9am 10am 11am 12pm 1pm 2pm Do not start this quiz until you are told to do so. Instructions You have 20 minutes for this quiz. This is a closed book exam. No notes or other aids are allowed. Answer essay questions concisely using 2-3 sentences. Longer answers are not necessary and a penalty may be applied. For partial credit, show all of your work and clearly indicate your answers. Write neatly. Credit cannot be given for illegible answers. 1. (8 pts) OCaml Types and Type Inference a. (3 pts) Give the type of the following OCaml expression fun x -> [ x 1 ] Type = b. (3 pts) Write an OCaml expression with the following type ‘a list -> ‘a Code = c. (2 pts) Give the value of the following OCaml expressions. If an error exists, describe the error. (fun x -> fun y -> x+y) 6 4 Value =
Background image of page 1

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

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

This note was uploaded on 01/13/2012 for the course CMSC 330 taught by Professor Staff during the Fall '08 term at Maryland.

Page1 / 4

quiz3-fall11 - CMSC330 Fall 2011 Quiz #3 Name Discussion...

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

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