Bytecode & VM: Making It Run 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. Main executes PUSH_NUM 19, PUSH_NUM 7, SUB and then ends without POP. What numeric value is returned? Enter only the requested integer.
2. A while compiler jumps back to the declaration that initializes its counter rather than the condition. What can this do?

Select one answer.

3. A complete source program ends with add(2,3);. Why can CompileAndRun return nil despite the call computing 5?

Select one answer.

4. Which rule prevents conditions from accumulating on the stack across a loop?

Select one answer.

5. A v2 named function uses a global x and is called inside a block shadowing x. Which environment policy matches this VM?

Select one answer.

Join Discord