This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Midterm #1 CMSC 330: Organization of Programming Languages Spring 2010 March 10, 2010 Name Discussion Time (circle one): 9am 10am 11am noon 1pm 2pm Instructions Do not start until told to do so! • This exam has 8 pages (including this one); make sure you have them all • You have 75 minutes to complete the exam • The exam is worth 100 points. Allocate your time wisely: some hard questions are worth only a few points, and some easy questions are worth a lot of points. • If you have a question, please raise your hand and wait for the instructor. • You may use the back of the exam sheets if you need extra space. • 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. You may avail yourself of the punt rule. If you write down punt for any part of a question with a specifically- assigned point value, you will earn 1/5 of the points for that question (rounded down). Question Points Score 1 Programming Languages 10 2 Regular Expressions 8 3 Finite Automata 10 4 NFA to DFA 14 5 DFA Minimization 10 6 Ruby Features 18 7 Ruby Programming 30 Total 100 1. (Programming Languages, 10 points) (a) (5 points) When working with an interpreted language, after making a change to your program, you will be able to start running it more quickly than if you were using a compiled language. Why is this?...
View Full Document
- Fall '08
- Subroutine, Regular expression, Ruby