Computer Science, asked by HARIHANDSOME, 9 months ago

Which of the following real world scenarios would you associate with a stack data structure? *


piling up of chairs one above the other

people standing in a line to be serviced at a counter

offer services based on the priority of the customer

tatkal Ticket Booking in IRCTC

Answers

Answered by Aravinda02
3

Answer:

Explanation:

PILING UP OF CHAIRS BECAUSE THE TOP MOST CHAIR GETS REMOVED FIRST

STACK WORKS ON SAME PRINCIPLE

LAST IN FIRST OUT

PEOPLE STANDIN IN A LINE IS SIMILIAR TO QUEUE

FIRST PERSON GETS SERVED FIRST

FIRST IN FIRST OUT

HOPE THIS HELPS

MARK ME BRAINLIEST

Answered by qwwestham
0

The real-world scenario that could be associated with a stack data structure is, the "piling up of chairs one above the other". (option 1st)

  • The Stack data structure can be defined as a linear kind of data structure, in which the principle followed is LIFO (Last In First Out). A Stack has just one end, compared to the queue, which has two.
  • Now, it can be seen that among the given scenarios, only the first one, that is, "piling up of chairs one above the other", will follow the order of last in first out, as the chair that is put at last, will be taken out first. So, it is similar to the Stack.
  • Thus, the correct answer will be option first.

#SPJ3

Similar questions