Which operation removes an element from the stack?

2017

Which operation removes an element from the stack?

  1. A.

    push

  2. B.

    pop

  3. C.

    peep

  4. D.

    peek

Attempted by 228 students.

Show answer & explanation

Correct answer: B

`pop` removes the top element from a stack.

Explore the full course: Coding For Placement