Questions & Results
Q1 of 7Multiple ChoiceAccuracy45s · 1 pt
What does the Church–Turing thesis state about Turing machines and the lambda calculus?
A Turing machines can compute strictly more functions than the lambda calculus B They compute exactly the same set of functions✓ Correct C The lambda calculus can compute strictly more functions than Turing machines D They are unrelated models with no common computational power 134 / 166 answered · 85% correct
Q2 of 7Multiple ChoiceAccuracy45s · 1 pt
Using the lecture's show printer, which only adds the parentheses that are needed, what does this return?
show (App (Var "x", App (Var "y", Var "z")))
148 / 166 answered · 69% correct
Q3 of 7Multiple ChoiceAccuracy60s · 1 pt
Which OCaml value represents the lambda term λx.λy.x y?
A Lam ("x", Lam ("y", App (Var "x", Var "y")))✓ Correct B Lam ("x", App (Lam ("y", Var "x"), Var "y")) C App (Lam ("x", Var "x"), Lam ("y", Var "y")) D Lam ("x", Lam ("y", App (Var "y", Var "x"))) 159 / 166 answered · 77% correct
Q4 of 7Multiple ChoiceAccuracy60s · 1 pt
Using call-by-value, what does this term evaluate to when no more steps apply?
(λx.λy.x y) (λz.z z) x
154 / 166 answered · 45% correct
Q5 of 7Multiple ChoiceAccuracy45s · 1 pt
Because the inner λx shadows the outer one (substitution case 4), what does (λx.(λx.x)) a reduce to?
163 / 166 answered · 74% correct
Q6 of 7Multiple ChoiceAccuracy45s · 1 pt
By the formal definition of free variables, what is FV(λx.e)?
0 / 166 answered
Q7 of 7Multiple ChoiceAccuracy45s · 1 pt
Lambda calculus has no built-in numbers, booleans, if, let, or recursion, yet it can still compute:
A Only arithmetic expressions B Anything computable — it is Turing complete✓ Correct D Nothing beyond simple variable renaming 0 / 166 answered
Score Distribution
Score (points) →