

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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
exam solution for previous year
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!
Question 1 Var = {V0} Block = {B0, B1} contains = {} declares = {B0->V0, B1->V0} uses = {}
Question 2 S1: all b:Block | b.declare in b.uses S2: all b:Block | all v:b.uses | v in (contains.b).declares S2: all b:Block | b.uses in (contains.b).declares S3: all v:Var | lone b:Block | v in b.declares S4: one b:Block | all b1:Block | b1!=b => b !in b1.contains S4: one b:Block | no b1:Block-b | b !in b1.contains
Question 3 S1: {b:Block | some b':b.contains | no b'.uses} S2: (*contains.b).declares S3: {b:Block | all b':b.contains | one v:Var | b'.uses = v} S4: {b:Block | #{b':b.contains | no b'.declares}=2}
Question 4 A
Question 5 true // because of B
Question 6 true
Question 7 {A1->A1} // other correct answers: {(A1,A1)} and A1->A
Question 8 false // because of A0.r = {B0,B1,B2}
Question 9 {A1} // other correct answers: A
Question 10 {(s1,t0)} // other correct answers: {s1->t0} and s1->t
Question 11 {(t0,s1)} // other correct answers: {t0->s1} and t0->s
Question 12 {(s0,t0)} // other correct answers: {s0->t0} and s0->t
Question 13 {s0} // other correct answers: s
Question 14 {s1} // other correct answers: s
Question 15 {s0,s1}
Question 16 {(s0,s2)} // other correct answers: {s0->s2}
Question 17 The following statements are true: