CS115 Lecture 1: CS 115 Full Exam Notes

124 views13 pages
elliehaj0807 and 36989 others unlocked
CS115 Full Course Notes
13
CS115 Full Course Notes
Verified Note
13 documents

Document Summary

Imperative : frequent changes to data : machine language. Functional : new values are computed not transformation of old ones. Arguments are substituted into the expression in place of parameters. Built-in functions (quotient 10 2) quotient (remainder 11 2) remainder. Be able to write common scheme expression errors: syntax :the way we are allowed to express ideas spelling, grammer, etc . Syntax error occurs when an expression cannot be interpreted using syntax rules (+ - 3: sematics :meaning of what we say. Changing the name of parameters does not change what the function does: different parameter names, same behaviour: Applied to scheme: (define ( f a) (* a 2 )) (define ( f b) (* b 2 ): the same parameter name can be used for different functions: B ( a ) = x2 + 1. Applied to scheme: (define (a x) (/ x 2)) (define (b x) (* x 2))

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents