Computer Science, asked by MDwaseembhat309, 11 months ago

Which of the following is a correct example of a LIFO ?(a) A queue of people
(b) Cars waiting for service(c) Pile (tray) of paper
(d) Jobs waiting for services

Answers

Answered by anushka98745
29

Answer:

(d) jobs waiting for services

Answered by topwriters
10

Pile of paper is the example of LIFO

Explanation:

LIFO means Last In First Out.

From the choices given, the people in a queue will move out in the order they joined the queue. So it is an example of FIFO, First In First Out. So the person who joined the queue first, will leave the queue first.

The same is the case of cars waiting for service and jobs waiting for service. The car that joined the line first will be serviced first; same with the jobs.

Whereas in a stack of paper, the last piece of paper that joined the stack will be at the top of the stack. So the last piece will be the first one to come out when you pick the paper from the top of the stack. Hence it is an example of LIFO, Last In First Out.

Similar questions