In a Stack data structure, the <code>Push</code> operation inserts a new element at which position?
A
Stacks, Queues and Deques short notes for GATE DA: 3 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.
Push: | Pop:
FIFO (First In, First Out).
• Add at Rear (Enqueue).
• Remove from Front (Dequeue).
Double-Ended flexibility.
• insertFirst, insertLast
• removeFirst, removeLast
• All four are time.
• Explicitly label Front and Rear.
• Cross out removed elements; do not erase.
• Track external variables independently.
Circular arrays require modulo arithmetic to wrap around correctly without shifting all elements.
In a Stack data structure, the <code>Push</code> operation inserts a new element at which position?
A
Which stack operation removes and returns the topmost element?
C
Push: Adds an element to the top. Does not remove.
- Peek (or Top): Returns the top element without removing it.
- Pop: Removes the top element and returns it.
- IsEmpty: Checks whether the stack is empty. Returns a boolean.
Step 2: The question asks for the operation that both removes and returns. Only Pop does both.
Answer: Option C
Stacks, Queues and Deques short notes for GATE DA: 3 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.
Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.
Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.
Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.
We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.
Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.
Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.
Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.
No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.
Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.