Question: Problem 4 [10pt Consider the following pseudo-code: int 2; function C(P) int x-4 P Oi function DO print x; function B) ( int x-3; C
Problem 4 [10pt Consider the following pseudo-code: int 2; function C(P) int x-4 P Oi function DO print x; function B) ( int x-3; C (D) BO a) (5pt) What would it print if this language uses dynamic scoping and shallow binding? Justify your answer by showing the hierarchy of symbol tables at the print statement (assume each table contains two columns: name and type) b) (5pt) What would it print if this language uses dynamic scoping and deep binding? Justify your answer by showing the hierarchy of symbol tables at the print statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
