CS135 Midterm: Term Test 1 - Fall 2017

949 views25 pages

Document Summary

Topic included: translating expression, functions and constants, design recipes, comparison, boolean, conditional expression, 3 the semantics of beginning student, structures and compound data, lists, natural numbers, recursion, more on lists. Imperative language: based on frequent changes to data. Functional language: based on the computation of new values rather than the transformation of old ones. Examples: excel formulas, lisp, ml, haskell, erlang, f#, mathematica, xslt, Racket: a functional programming language interactive evaluator: minimal but powerful syntax, small toolbox with ability to construct additional required tools, used in education and research since 1975, a dialect of scheme. #i prefix is short for i don"t really know the precise number so take that for now or inexact number. The expression (+ (1)(2)) contains way too many parentheses, and. Drracket lets you know in no uncertain terms: > (+ (1) (2)) function call:expected a function after the open parenthesis, found a number. 1. 2. 1 definition: f(x) = x2, g(x, y) = x + y.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents