Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please Help: Study the program outline below and then answer the questions, assu

ID: 3542311 • Letter: P

Question

Please Help:


Study the program outline below and then answer the questions, assuming that static scoping rules are in effect. Which variables are in scope at line 5? Give the line number where each is declared. Which names are visible when line 12 executes? Give the line number where each is declared. Which variables are alive when line 16 executes? Give the line number where each is declared. Show the stack of symbol tables that is in effect when sub1 is being processed Graduate Student Questions

Explanation / Answer

a)p,q,x,z

b)p,q,x,y,z,t

c)y,z