Which of the following is true?
Stack is a data structure that is based on First-in-First-Out (FIFO) rule
Queues are based on Last-In-First-Out (LIFO) rule
Neither (a) nor (b)
Both (a) and (b)