NEW
New Website Launch
Experience the best way to solve previous year questions with mock tests (very detailed analysis), bookmark your favourite questions, practice etc...
VISIT NOW

GATE CSE

Arrays

Data Structures

Previous Years Questions

Marks 1

More
Consider the following C program. #include < stdio.h > int main () { int a [4] [5] = {{1, 2, 3, 4, 5}, ...
GATE CSE 2020
A program P reads in 500 integers in the range [0, 100] representing the cores of 500 students. It then print the freque...
GATE CSE 2005
A single array A[1..MAXSIZE] is used to implement two stacks, The two stacks grow from opposite ends of the array. Varia...
GATE CSE 2004
Suppose you are given an array s[1..n] and a procedure reverse (s, i, j) which reverse the order of elements in s betwee...
GATE CSE 2000
An n $$\times$$ n array v is defined as follows V [i, j] = i - j for all i, j, $$1 \le i \le n,\,1 \le j \le n$$ The sum...
GATE CSE 2000

Marks 2

More
Define Rn to be the maximum amount earned by cutting a rod of length n meters into one or more pieces of integer length ...
GATE CSE 2021 Set 1
Let P be an array containing n integers. Let t be the lowest upper bound on the number of comparisons of the array eleme...
GATE CSE 2021 Set 1
Consider the following C functions in which size is the number of elements in the array E: int MyX(int *E, unsigned int ...
GATE CSE 2014 Set 1
Two matrices M1 and M2 are to be stored in arrays A and B respectively. Each array can be stored either in row-major or ...
GATE CSE 2004
Let A be a two dimensional array declared as follows: A : array [ 1... 10] [1... 15] of integer; Assuming that each inte...
GATE CSE 1998
In a compact single dimensional array representation for lower triangular matrices (i.e all the elements above the diago...
GATE CSE 1994

Joint Entrance Examination

JEE Main JEE Advanced WB JEE

Graduate Aptitude Test in Engineering

GATE CSE GATE ECE GATE EE GATE ME GATE CE GATE PI GATE IN

Medical

NEET

CBSE

Class 12