PLQ #3Done on:   Tuesday, October 1st

Question 1 @ 2024-10-01 18:35

Which of the following points is true about Typed Racket?


Question 2 @ 2024-10-01 18:39

Consider the following WAE expression:

{with {x 5}
  {+ x
    {with {y x} y}}}

After one substitution step (i.e., what eval does in one step only), we get:

{+ ?A?
  {with {y ?B?} y}}

What should we see in the two ?A? and ?B? places respectively?


Question 3 @ 2024-10-01 18:42

In homework #3, we’ve seen tests like:

(test (run "{sqrt 9}") => '(3 -3))

Is there any problem with this test?


Question 4 @ 2024-10-01 18:45

Given that the answer to the last question

(test (run "{sqrt 9}") => '(3 -3))

is that this tests a particular order, what would be the best approach to fix it?

(Choose the best answer.)