Question: 5: Extra Credits (10 points) resolved using the Question What is the output of the below pseudo code assuming bindings are closest nested scope rule

5: Extra Credits (10 points) resolved using the Question What is the "output" of the below pseudo code assuming bindings are closest nested scope rule and (respectively) A. dynamic scoping B. lexical (ie., static) scoping? VAR count: INTEGER PROCEDURE procx Is BEGIN VAR count: INTEGER SET count To 100 CALL report END PROCEDURE procr IS BEGIN SET count TO 200: CALL report END PROCEDURE report Is BEGIN PRINT "count-" + count END MAIN PROGRAM IS BEGEN SET COunt TO300 CALL procx: CALL procy END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
