Question discussion

[Added later – this question is not part of the original paper]Which operation is used to insert an element into a stack?

359647Medium DSSSB TGT Computer Science 0 replies 0 views
0

[Added later – this question is not part of the original paper]

Which operation is used to insert an element into a stack?

  • APop
  • BPush
  • CPeek
  • DEnqueue
Correct answer: B

Explanation

Push adds an element to the top of a stack. Pop removes it and enqueue belongs to a queue.

Discussion 0

Nobody has replied yet. Start the discussion!