CMSC330_11/10

CMSC 330 — Fall 2026 · November 10, 2026 · 166 players · Max 7 pts

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
11
B They compute exactly the same set of functions
114
✓ Correct
C The lambda calculus can compute strictly more functions than Turing machines
8
D They are unrelated models with no common computational power
1
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")))
A "x y z"
2
B "(x y) z"
16
C "(x (y z))"
28
D "x (y z)"
102
✓ Correct
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")))
123
✓ Correct
B Lam ("x", App (Lam ("y", Var "x"), Var "y"))
20
C App (Lam ("x", Var "x"), Lam ("y", Var "y"))
5
D Lam ("x", Lam ("y", App (Var "y", Var "x")))
11
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
A λy.(λz.z z) y
12
B (λz.z z) x
65
C z z
7
D x x
70
✓ Correct
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?

A a
14
B λx.a
24
C λx.x
121
✓ Correct
D x
4
163 / 166 answered · 74% correct
Q6 of 7Multiple ChoiceAccuracy45s · 1 pt

By the formal definition of free variables, what is FV(λx.e)?

A FV(e) - {x}
✓ Correct
B FV(e) ∪ {x}
C {x}
D FV(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
C Only boolean logic
D Nothing beyond simple variable renaming
0 / 166 answered

Score Distribution

6
16
25
40
51
28
0
1
2
3
4
5
6
7

Score (points) →

Players
166
Average Score
3.2
High Score
5
Max Possible
7