On which principle does stack work?

Options
- FILO
- FIFO
- LILO
- LIFO or FILO


CORRECT ANSWER : LIFO or FILO

Discussion Board
stack work last in first out

i agree this answer.but in feature how we develop aap in help of stack

jyoti kant 09-6-2016 05:08 AM

Data Structure

The answer is correct.
Stack is a collection of elements, which can be stored and retrieved one at a time.
Elements are retrieved in reverse order of their time of storage, i.e. the latest element stored is the next element to be retrieved.
A stack is a container of objects that are inserted and removed according to the Last-In First-Out (LIFO) principle.
Sometimes it's referred to as a Last-In-First-Out (LIFO) or First-In-Last-Out (FILO) structure.
Elements previously stored cannot be retrieved until the latest element (usually referred to as the 'top' element) has been retrieved.
So, I don't think there is any difference in term 'LIFO' or 'FILO'


Prajakta Pandit 09-24-2015 03:01 AM

data structure

LIFO IS CORRECT not LILO


Ruby 04-10-2015 03:31 AM

DATA STRUCTURE

wrong answer

A stack is worked on LIFO OR FILO

anusuya 03-24-2015 06:34 AM

data structurre

ur ans is wrong ans stack is works on the principle of LIFO

SRILEKHA 10-28-2014 05:32 AM

data structure

Your specified answer is wrong.Correct ans. is LIFO or FILO.


surbhi rathore 09-10-2014 01:57 AM

Stack

A stack works on the principle of Last In - First Out (LIFO) since removing a plate other than the top one on the stack is not very easy without first removing those plates above it in the stack.

Stack - LIFO 08-18-2014 12:34 AM

wrong ans

it must be LIFO not FIFO, FIFO is for queue not for stacks.

fatha 08-17-2014 04:13 PM

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement