Question:

Which one is an input function for stack ?

Show Hint

You PUSH items onto a stack and POP them off.
  • POP
  • PUSH
  • Binary
  • Traversal
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Define stack operations. A stack has two primary operations:

Push: Adds an element to the top of the stack. This is the "input" operation.
Pop: Removes the element from the top of the stack. This is the "output" operation.

Step 2: Match the term to the operation. The function to add or "input" an element to the stack is called PUSH.
Was this answer helpful?
0
0