final-spr09

final-spr09 - CMSC330 Spring 2009 Final Exam Name...

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

View Full Document Right Arrow Icon
CMSC330 Spring 2009 Final Exam Name Discussion Time (circle one): 9am 10am Do not start this exam until you are told to do so! Instructions You have 120 minutes for to take this midterm. This exam has a total of 160 points. An average of 40 seconds per point. This is a closed book exam. No notes or other aids are allowed. If you have a question, please raise your hand and wait for the instructor. Answer essay questions concisely using 2-3 sentences. Longer answers are not necessary and a penalty may be applied. In order to be eligible for partial credit, show all of your work and clearly indicate your answers. Write neatly. Credit cannot be given for illegible answers. Problem Score Max Score 1 Programming languages 14 2 Regular expressions & CFGs 8 3 Finite automata 10 4 Parsing 12 5 OCaml types & type inference 12 6 OCaml programming 10 7 Scoping 8 8 Polymorphism 9 9 Multithreading 20 10 Lambda calculus 16 11 Lambda calculus encodings 16 12 Operational semantics 8 13 Markup languages 8 14 Garbage collection 9 Total 160
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. (14 pts) Programming languages a. (6 pts) List 3 different design choices for parameter passing in a programming language. Which choice is seldom used in modern programming languages? Explain why. b. (4 pts) List 2 different design choices for type declarations in a programming language. Which choice is seldom used in modern programming languages? Explain why. c. (4 pts) List 2 different design choices for determining scoping in a programming language. Which choice is seldom used in modern programming languages? Explain why.
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 01/13/2012 for the course CMSC 330 taught by Professor Staff during the Fall '08 term at Maryland.

Page1 / 5

final-spr09 - CMSC330 Spring 2009 Final Exam Name...

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