arrow
arrow
arrow
Among the following statements about stacks, which one is NOT correct?
Question



Among the following statements about stacks, which one is NOT correct?

A.

New nodes can only be added to the top of the stack.

B.

Stacks can be implemented using linked lists.

C.

Stacks are first-in, first-out data structures.

D.

The last node (at the bottom) of a stack has a null (0) link.

E.

Stacks are very useful

Correct option is C

Stacks follow the Last-In, First-Out (LIFO) principle, where the last element added is the first to be removed. This makes the statement about "first-in, first-out" incorrect, as that describes queues.
Important Key Points:
1. LIFO: Last element added is accessed first.
2. Stacks can be implemented using arrays or linked lists.
3. Common applications include recursion management and backtracking.
Knowledge Booster:
· FIFO (First-In, First-Out): Followed by queues, not stacks.
· Stacks are often used in compilers for syntax checking and memory management.
· Operations on stacks include push, pop, and peek.

Free Tests

Free
Must Attempt

DSSSB G-II/ASO Full Mock Test 1

languageIcon English
  • pdpQsnIcon200 Questions
  • pdpsheetsIcon200 Marks
  • timerIcon120 Mins
languageIcon English
Free
Must Attempt

DSSSB ASO PYP (Held on 18 Aug 2025 S1)

languageIcon English
  • pdpQsnIcon200 Questions
  • pdpsheetsIcon200 Marks
  • timerIcon120 Mins
languageIcon English
Free
Must Attempt

General Awareness Subject Test 1

languageIcon English
  • pdpQsnIcon20 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon10 Mins
languageIcon English
test-prime-package

Access ‘IBPS SO IT Officer’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
383k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow