Answer:
Step-by-step explanation:
In dynamic scoping, scoping is defined as per calling sequence.
1. fun3 is last
f is defined in fun3
e is define in fun3
d is defined in fun3
c is visible from fun2
b is visible from fun1
a is visible form main
2. fun3 is last
f is defined in fun3
e is define in fun3
d is defined in fun3
c and b are visible from fun1
a is visible from main
3. fun1 is last
b is defined in fun1
c is define in fun1
d is defined in fun1
e and f are visible from fun3
a is visible from main
4. fun1 is last
b is defined in fun1
c is define in fun1
d is defined in fun1
e and f are visible from fun3
a is visible from main
5. fun2 is last
c is defined in fun2
d is define in fun2
e is defined in fun2
f is visible from fun3
b is visible from fun1
a is visible from main