199k views
1 vote
Sarah works in a coffee house where she is responsible for keying in customer orders. A customer orders snacks and coffee, but later, cancels the snacks, saying she wants only coffee. At the end of the day, Sarah finds that there is a mismatch in the snack items ordered. Which term suggests that data has been violated?

User Roy Peleg
by
3.3k points

2 Answers

5 votes

Answer:

c

Step-by-step explanation:

User Zbdiablo
by
3.4k points
3 votes

Answer:

Stack

Step-by-step explanation:

Stack is a linear data structure that follows a particular order in the way an operation is done or sequence a job is completed.

It uses either LIFO ( Last In, First Out) which is also known as first come first served sequence or FILO (First In, Last Out) sequence.

There are several real life examples of which we can use the example of replacing the snack items Sarah brought for the customer.

If Sarah used the LIFO method, it means she replaced the snack items first ontop of the already existing snack items that's why there is a mismatch.

User Iaroslav Siniugin
by
3.5k points