Which principle does a stack follow? a) First In Last Out (FILO)
b) Last In First Out (LIFO)
c) First In First Out (FIFO)
d) None of the above
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The correct answer is:
b) Last In First Out (LIFO)
Explanation: A stack is a data structure that follows the Last In First Out (LIFO) principle, meaning that the last element added to the stack is the first one to be removed. This is similar to a stack of plates; you can only take the top plate off the stack first. If you have more questions or need further clarification, feel free to ask!