Question

7. (25%) Given the following Ada program procedure Main is X, Y: Integer procedure Sub1 is Y, Z: Integer begin of Sub1 point 1 Sub2 end of Sub1 procedure Sub2 is X: Integer procedure sub (B Integer) is W: Integer begin of Sub3 point 2 end of Sub3 begin of Sub2 point 3 Sub3 (X) end of Sub2 begin of Main point 4 Sub1 end of Main a. 5% For each of the four marked points, list each visible variable if the static scoping is used b. 5% For each of the four marked points, list each visible variable if the dynamic scoping is used. c. (10% Show the stack with all activation records, including static and dynamic links, when the execution reaches point 2. d. (5% What are the purposes of using static and dynamic links in activation records?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Note » Question consists of multiple subparts. » Within the time limi » t, we have solved the first part s alone. Kindly the

Add a comment
Know the answer?
Add Answer to:
Given the following Ada program: procedure Main is X, Y: Integer; procedure Sub1 is Y, Z:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT