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)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!