Which operation returns the top element of a stack without removing it?

Options

  • A. Push
  • B. Pop
  • C. Peek
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. Peek

Detailed Explanation

Correct Answer: C. Peek

Explanation: Peek (also called Top) returns the element at the top of the stack without deleting it.

  • Push: Inserts an element.
  • Pop: Removes the top element.
  • Peek: Reads the top element without removal.