A value parameter shadows a global
Runtime Environments & Parameter Passing

Answer & solution
Answer: A: 2 under the intended Pascal value-parameter program (no official key was published)
Without the keyword var, the procedure parameter is passed by value. Its local X receives a real copy of the argument and shadows the global name inside FIND. Assigning sqrt(X) changes only that local copy; it does not assign to the global integer. On return the global X is still 2, so printing it yields 2. The the paper omits some statement separators; this analysis uses the intended syntactically separated program rather than treating formatting omissions as executable Pascal.

