Runtime Environments & Parameter Passing

Answer & solution
Answer: D; the value printed is 4 (no official key was published)
Step 1: The outer n is set to 10, but procedure D declares its own n and sets it to 3. At the call W(n), the actual argument is that active local variable.
Step 2: Reference passing binds W’s x to D’s n. Executing x=x+1 changes it from 3 to 4; print x therefore prints 4. The outer n remains 10.
Since the listed numeric choices are 10,11,3, the answer is none of these, D. The formal binding already identifies the object, so dynamic scope does not redirect x to the outer n.