Vocabulary of evaluation strategies

Match each term used to describe how a programming language evaluates expressions with the description that defines it.

Match each term
A.

Every argument is reduced to a value before the function body runs

B.

The leftmost, outermost reducible expression is reduced first, so arguments enter the body unevaluated

C.

Can return a defined result even when one of its arguments would loop forever if evaluated

D.

A boolean operator skips its second operand when the first already fixes the result

E.

A computation that never produces a value, such as an infinite loop

F.

The sequence in which the operands of an operation are computed, for example left to right

G.

Its result is undefined whenever a particular argument's evaluation fails or never finishes

Applicative order

Evaluation order

Normal order

Strict function

Non-strict function

Divergence

Short-circuit evaluation

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Evaluation Strategies Questions: