CSE 240 Final Exam Review Questions With Complete Solutions
Functional programming languages do NOT allow us to define: correct answer: variables whose value can be modified. The statement "a function is a first-class object" means that a function correct answer: can be placed in a place where a value is expected. What notation requires parentheses in order to correctly define the order of computation? correct answer: infix notation Convert the following expression into prefix-p notation (a Scheme statement): -5 * (2 + 1/2) + 40 correct answer: (+ (* (- 5) (+ 2 (/ 1 2))) 40) One of the major differences between the imperative and functional programming languages is that the functional programming languages do NOT (in general!)... correct answer: have side-effects. Which of the following is a valid Scheme expression? correct answer: (* 9 (/ (- 4 2) 7)) Convert the following expression into prefix-p notation (a Scheme statement): 10 + (5 - 3) + 2 / 4 correct answer: (+ 10 (- 5 3) (/ 2 4)) Given an expression: x1 + x2 + x3 + x4 Which language allows us to evaluate t
Written for
- Institution
- CSE 240
- Course
- CSE 240
Document information
- Uploaded on
- May 19, 2023
- Number of pages
- 16
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cse 240 final exam review questions with complete solutions
Also available in package deal