Question: Q 2 9 ( 4 pts ) in Fig 1 , assuming the program starts executing in MAIN and then calls F 2 , which

Q 29(4 pts) in Fig 1, assuming the program starts executing in MAIN and then calls F2, which then calls F1 which then calls F3 that then calls F4. Using STATIC Scoping, what variable are ALIVE if in F4?
f){Global :(X and A and B), F1:W, F4:B}
g){Global :(X and A and B), MAIN:X, F2(A and B),F1:W, F3: A, F4:B}
h){Global :A , MAIN: X, F1:W, F4:B}
i){Global :(X and A), F1:W, F4:B}
j) Cant tell by looking at fig 1.
Q 2 9 ( 4 pts ) in Fig 1 , assuming the program

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 Programming Questions!