CMSC 330 Midterm: Midterm 1 Solutions Spring 2017

8 views13 pages

Document Summary

Name (print your name as it appears on gradescope ): Do not start this test until you are told to do so! You have 75 minutes to take this midterm. This exam has a total of 100 points, so allocate 45 seconds for each point. Answer essay questions concisely in 2-3 sentences. For partial credit, show all of your work and clearly indicate your answers. They are functions that run in higher than o(n) time. They are functions that can return other functions. Environment x=10 y=20 (6 pts) circle t (true) or f (false) for the following statements (1pt each) T / f with immutable state, aliasing is irrelevant. T / f methods can be overloaded in ruby. T / f ruby is a compiled language. T / f for ocaml, type inference happens at compile-time. Why was 6 afraid of 7? =~ /\d\s(\w+).