
Homework 4
Authored by Antonio Estevan
Mathematics
University
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many people can visit the canteen?
200
1
No limit
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Must every student visiting the canteen eat a dish?
Yes
No
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many dishes can the canteen offer?
3
1
No Limit
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many drinks can a person take?
3
1
No Limit
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Invariant 1:
context Dish
inv : student_price < 5
Satisfies
Does not satisfy
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Invariant 2:
context Canteen inv : self . dishes -> select ( type = Type :: vegetarian )
-> collect ( students ) -> size () = 2
Satisfies
Does not satisfy
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Invariant 3:
context Canteen inv : self . guests ->
exists ( guest : Person | guest . diet = Type :: vegan )
Satisfies
Does not satisfy
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?