Arrays: GATE CS previous year questions
Arrays 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.
Arrays
- Consider the following two C code segments. Y and X are one and two dimensional arrays…
- What is printed by the following ANSI C program? #include<stdio.h> int main(int argc…
- Let A be a square matrix of size n × n. Consider the following pseudocode. What is the…
- Consider the following C function in which size is the number of elements in the array…
- Consider an array X that contains n positive integers. A subarray of X is defined to be…
- Consider the following ANSI C program. #include <stdio.h> int main(){ int arr[4][5]; int…
- The following function computes the maximum value contained in an integer array p[] of…
- A Young tableau is a 2D array of integers increasing from left to right and from top to…
- What is the output of the following C code? Assume that the address of x is 2000 (in…
- Consider the following snippet of a C program. Assume that swap(&x, &y) exchanges the…
More Programming and Data Structures chapters
- Programming in C
- Recursion
- Stacks and Queues
- Linked Lists
- Trees and Binary Search Trees
- Binary Heaps
- Graphs (Data Structure)
Frequently asked questions
How many GATE CS questions are there on Arrays?
PrepWiser has 10 past-paper questions on Arrays 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.