Stacks and Queues: GATE CS previous year questions
Stacks and Queues is part of Programming and Data Structures in the GATE CS syllabus. This page lists 10 past-paper questions on it from official GATE CS papers.
Stacks
- The result evaluating the postfix expression 10 5 + 60 6 / * 8 - is
- Let S1 and S2 be two stacks. S1 has capacity of 4 elements. S2 has capacity of 2…
- Suppose a stack implementation supports an instruction REVERSE, which reverses the order…
- Consider a stack S and a queue Q. Both of them are initially empty and have the capacity…
- Consider the following sequence of operations on an empty stack. push(54); push(52)…
- Let Q denote a queue containing sixteen numbers and S be an empty stack. Head(Q) returns…
- Consider a stack data structure into which we can PUSH and POP records. Assume that each…
Queues
- A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are…
- A circular queue has been implemented using a singly linked list where each node…
- Suppose a circular queue of capacity (n-1) elements is implemented with an array of n…
More Programming and Data Structures chapters
- Programming in C
- Recursion
- Arrays
- Linked Lists
- Trees and Binary Search Trees
- Binary Heaps
- Graphs (Data Structure)
Frequently asked questions
How many GATE CS questions are there on Stacks and Queues?
PrepWiser has 10 past-paper questions on Stacks and Queues from official GATE CS papers.
Are these real GATE CS questions?
Yes. Each one is from an official GATE CS paper and names its year and set. The answers come from the official answer keys.
Where are the step-by-step solutions?
Every question shows its answer, free. Step-by-step solutions, where available, are part of GATE CS Pro.