Questions: Lambda Calculus Foundations

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

What does (λx.λy.x) applied to TRUE and then to FALSE reduce to?

AFALSE — the inner function returns the second argument
BTRUE — after two beta reductions, the body is TRUE with y discarded
Cλy.TRUE — the expression cannot reduce further without knowing FALSE
DIt is undefined because TRUE and FALSE are not built-in values
Question 2 Multiple Choice

A compiler implements closures by capturing the environment at the point a function is defined. Which lambda calculus concept directly corresponds to this mechanism?

AAlpha conversion — renaming bound variables to avoid conflicts
BBeta reduction — substituting arguments into function bodies
CVariable capture — free variables in a lambda body refer to the enclosing scope at definition time
DNormal form — the fully reduced expression stored in memory
Question 3 True / False

In lambda calculus, numbers like 3 are primitive values stored separately from functions.

TTrue
FFalse
Question 4 True / False

Two lambda expressions that reduce to each other through beta reduction are considered computationally equivalent.

TTrue
FFalse
Question 5 Short Answer

Why does lambda calculus demonstrate that computation does not require built-in data types, conditionals, or loops?

Think about your answer, then reveal below.