Skip to content

GATE CS Arrays, Stacks and Queues questions

Practise Arrays, Stacks and Queues questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

9 on this page
Official PYQ1998Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
Let AA be a two dimensional array declared as follows: A: array [1 …. 10] [1 ….. 15] of integer; Assuming that each integer takes one memory location, the array is stored in row-major order and the first element of the array is stored at location 100100, what is the address of the element A[i][j]A[i][j]?
Official PYQ1997Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
A priority queue QQ is used to implement a stack that stores characters. PUSH (C) is implemented as INSERT (Q,C,K)(Q, C, K) where KK is an appropriate integer key chosen by the implementation. POP is implemented as DELETEMIN(Q)(Q). For a sequence of operations, the keys chosen are in
Official PYQ1997Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
Which of the following is essential for converting an infix expression to the postfix form efficiently?
Official PYQ1996Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
An advantage of chained hash table (external hashing) over the open addressing scheme is
Official PYQ1996Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
Consider the following statements: First-in-first out types of computations are efficiently supported by STACKS. Implementing LISTS on linked lists is more efficient than implementing LISTS on an array for almost all the basic LIST operations. Implementing QUEUES on a circular array is more efficient than implementing QUEUES on a linear array with two …
Official PYQ1995Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
The postfix expression for the infix expression A+B∗(C+D)/F+D∗EA+B*(C+D)/F+D*E is:
Official PYQ1994Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
Which of the following permutations can be obtained in the output (in the same order) using a stack assuming that the input is the sequence 1, 2, 3, 4, 5\text{1, 2, 3, 4, 5} in that order?
Official PYQ1994Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
In a compact single dimensional array representation for lower triangular matrices (i.e all the elements above the diagonal are zero) of size n×nn \times n, non-zero elements, (i.e elements of lower triangle) of each row are stored one after another, starting from the first row, the index of the (i,j)th(i, j)^{th} element of the lower triangular matrix in this …
Official PYQ1991Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
The following sequence of operations is performed on a stack: PUSH(10),PUSH(20),POP,PUSH(10),PUSH(20),POP,POP,POP,PUSH(20),POPPUSH (10), PUSH (20), POP, PUSH (10), PUSH (20), POP, POP, POP, PUSH (20), POP The sequence of values popped out is