Question 1 @ 2024-09-17 19:08
This class works on how many levels?
-
Two levels: syntax and semantics.
-
A ladder of levels from easy at the beginning to advanced near the end of the semester.
-
Two levels: 4400 for undergrads and 5400 for masters.
-
Nonsensical question: it will be whatever number of level that makes sense.
Question 2 @ 2024-09-17 19:09
Which of the following terms are relevant to this class?
-
Compositing
-
Compositionality
-
Compoundability
-
Configurability
-
Accountabilibuddy
-
Semantics
Question 3 @ 2024-09-17 19:12
There’s a problem in the following function:
;; Adds a thing to stuff.
(define (add-thing a-thing things)
(cons a-thing things)
things)
How should it be fixed?
-
The contract (= type) should be corrected.
-
The purpose statement should start with a lowercase letter, and have no period at the end.
-
Function body should be indented by four spaces.
-
Missing a
set!
(Racket’s assignment) to change the value ofthings
to the result ofcons
. -
A
return
statement should be added. -
The last line should be removed.
-
There’s no problem.