Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Data Structure
Next »
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
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
C test (42)
C (12)
C++ for beginners (10)
C++ (20)
C++ (24)
C++ (18)
C++ (14)
C++ (12)
C++ (15)
C++ (15)
Data structure (20)
Data structure (10)
Data structure (10)
Data structure (10)
PERL (25)
VC++ (11)
Oops (30)
Mainframe (41)
Mainframe (15)
Embedded systems (15)
OOAD (49)
Advertisement
▲