Which of the following operations is not possible in a stack implemented using…

2023

Which of the following operations is not possible in a stack implemented using an array, if the stack is full?

  1. A.

    Print

  2. B.

    Pop

  3. C.

    Peek

  4. D.

    Push

Attempted by 221 students.

Show answer & explanation

Correct answer: D

An array-based stack has a fixed memory size. When the stack is completely full, attempting to insert a new element using the Push operation triggers a Stack Overflow error. Read and delete operations remain completely functional. Therefore, Option D is the correct answer.

Explore the full course: Btsc Lab Assistant