v3 Language: Collections and Closures 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. Two counters are made from starting value 2. Calls occur A(), A(), B(), A(), each incrementing its captured n before returning. What does the final A() return? Enter only the requested integer.
2. After let a=[2,4]; let b=a; b[1]=8;, what does a[1] yield?

Select one answer.

3. Two returned closures share one function ID but produce different captured values. Why is that possible?

Select one answer.

4. Which stage decides whether a v3 left brace begins a map expression or a statement block?

Select one answer.

5. Which item does not add an independent tracked Object to this VM’s HeapCount?

Select one answer.

Join Discord