v4 Parsing: for loops and short-circuit logic Checkpoint

Predict fresh artifacts, diagnose a broken invariant, and test a version boundary. Select one answer per multiple-choice question; numeric responses use the stated integer format. Use review links to revisit the relevant representation, then attempt the independent transfer task.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. How many of Init, Cond, and Post are absent in the AST for for (;;) { break; }? Enter only the requested integer.
2. Which token terminates the ordinary for post clause in its header?

Select one answer.

3. What is the root shape of p && q || r && s?

Select one answer.

4. Which input is syntactically a valid statement but rejected later for placement?

Select one answer.

5. What should parsing do with the absent condition in for (;;) {}?

Select one answer.

Join Discord