Questions: Operational Semantics

4 questions to test your understanding

Score: 0 / 4
Question 1 Multiple Choice

What is the key structural difference between small-step and big-step operational semantics?

ASmall-step semantics can only handle terminating programs, while big-step handles non-termination
BSmall-step defines a single transition (one computation step) and iterates it, while big-step relates a program directly to its final value in one judgment
CSmall-step is more expressive because it supports more language features
DBig-step semantics is more formal because it uses inference rules while small-step does not
Question 2 True / False

In small-step operational semantics, non-terminating programs are modeled as infinite sequences of transitions rather than as a special 'diverge' outcome.

TTrue
FFalse
Question 3 Short Answer

Write the small-step rule for the if-then-else construct: if the condition is 'true', the entire expression steps to the 'then' branch.

Think about your answer, then reveal below.
Question 4 Short Answer

Why is operational semantics considered a prerequisite for formal program verification rather than an alternative to it?

Think about your answer, then reveal below.