Question 7

Considerthe following psuedocode:
$$X: integer := 1$$
$$y: integer := 2$$

procedure add
$$X:=X+y$$

procedure second (P: procedure)
$$x : integer := 2$$
$$P()$$
procedurefirst
$$y : integer := 3$$
second(add)
first()
write_integer(x)
Whatdoesit print if the language uses dynamic scoping with deep binding?


Create a FREE account and get:

  • Download Maths Shortcuts PDF
  • Get 300+ previous papers with solutions PDF
  • 500+ Online Tests for Free

cracku

Boost your Prep!

Download App