English

State TRUE or FALSE for the following case: Stack does not follow LIFO rule. - Computer Science (Python)

Advertisements
Advertisements

Question

State TRUE or FALSE for the following case:

Stack does not follow LIFO rule.

Options

  • True

  • False

MCQ
True or False

Solution

This statement is False.

Explanation:

A stack is a linear data structure and LIFO (last in, first out) abstract data type. It is an ordered collection of items where a item may be inserted and from where a items may be deleted at one end only. LIFO means the element which inserted last will be deleted first and stack follows LIFO rule.

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Stack - Exercise [Page 52]

APPEARS IN

NCERT Computer Science [English] Class 12
Chapter 3 Stack
Exercise | Q 1. b) | Page 52
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×