This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CMSC330 Fall 2010 Midterm #1 Name Discussion Time (circle one): 9am 10am 11am 12pm 1pm 2pm Do not start this exam until you are told to do so! Instructions You have 75 minutes to take this midterm. This exam has a total of 100 points, so allocate 45 seconds for each 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 1 Ruby features /12 2 Regular expressions &amp; finite automata /12 3 RE to NFA to DFA /20 4 DFA minimization /10 5 OCaml Types /18 6 Ruby programming /28 Total /100 1. (12 pts) Ruby a. (6 pts) List 3 features of Ruby that are often found in scripting languages. b. (2 pts each) What is the output (if any) of the following Ruby programs? Write FAIL if code does not execute....
View Full Document
- Fall '08