Homework 4

Homework 4

Assessment

Quiz

Created by

Antonio Estevan

Mathematics

University

7 plays

Easy

Student preview

quiz-placeholder

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many people can visit the canteen?

200

1

No limit

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Must every student visiting the canteen eat a dish?

Yes

No

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many dishes can the canteen offer?

3

1

No Limit

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many drinks can a person take?

3

1

No Limit

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Invariant 1:

context Dish

inv : student_price < 5

Satisfies

Does not satisfy

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

Invariant 3:

context Canteen inv : self . guests ->

exists ( guest : Person | guest . diet = Type :: vegan )

Satisfies

Does not satisfy

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?