Question discussion

[Added later – this question is not part of the original paper]Which data structure follows the Last-In-First-Out (LIFO) principle?

359076Medium DSSSB TGT Computer Science 0 replies 0 views
0

[Added later – this question is not part of the original paper]

Which data structure follows the Last-In-First-Out (LIFO) principle?

  • AQueue
  • BStack
  • CArray
  • DLinked list
Correct answer: B

Explanation

In a stack the element inserted last is removed first, which is the LIFO principle.

Discussion 0

Nobody has replied yet. Start the discussion!