


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Programming Languages; Subject: Computer Science; University: Utah State University; Term: Unknown 1989;
Typology: Assignments
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Note, these exercises may be done in groups of one, two, or three. Working with someone else is strongly recommended. If more than one person is involved, list all the names on ONE set of answers. Groups may change throughout the term. Working in groups is a BIG plus for you. Take advantage of it. If you work in groups, you must work in the group for the ENTIRE assignment. It is considered cheating if you work with someone else for some of the answers, but turn in an individual copy of the answers. It is an all or nothing situation. You can't work together on some questions and alone on some. Sometimes I see an individual whose name is listed in two groups. This is strictly forbidden and is considered cheating. You cannot work in two groups. Assignments are due at the beginning of class and should be typed.
x: integer; y:float; procedure First; begin writeln(x, “ “, y); end; procedure Second; var x: integer; y: string; procedure Third; var x:integer; begin { Third } x := 99; First end; { Third } begin { Second } x := 88; y = “happy”; Third end { Second } begin { Example } x := 77; y = 10.7; First; Second end. { Example } a) What will be printed by this program if we assume static scope? b) What will be printed by this program if we assume dynamic scope?