DOC PREVIEW
MIT 6 001 - Worksheet #1 Basic Expressions

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Worksheet #1 Basic Expressions Michael Collins (modified from Tony Eng)Basic Expressions:=====================================================================scheme expression kind of expr value78.5"hello"#ty+(+ 3 5)(+ 5 7 -8)(- (* (+ 6 1)(/ 10 4))(- 10 8))(define w "who")w(string? w)Define Special Form======================================================================(define x 5)(define y (+ x 3))xy(define x 7)xy1Basic Expressions: more practice=====================================================================(* 3 4 0)(= 5 (/ 10 2))(> 7 3)(* 5 (> 7 3))(+)(10)(3 + 5)(/ 8 0)(+ 3 y)(+ 3 (define x 5))Basic Expressions: more practice II====================================================================="(+ 3 4)"(+ 19 "30")(* *)(+ (/ 10 0) (8) )not(not (= 3 4))If: what is the value of the following expressions?======================================================================(if #t 1 0)(if (> 7 3) 1 0)(if (and (> 7 3) (< 4 2)) 1 0)More on if: What is the value of the following expressions?======================================================================(if #t 1 yyy)(if #f 1


View Full Document

MIT 6 001 - Worksheet #1 Basic Expressions

Documents in this Course
Quiz 1

Quiz 1

6 pages

Databases

Databases

12 pages

rec20

rec20

2 pages

Quiz II

Quiz II

15 pages

Streams

Streams

5 pages

Load more
Download Worksheet #1 Basic Expressions
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Worksheet #1 Basic Expressions and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Worksheet #1 Basic Expressions 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?