## Array

 Question 1
In an array of 2N elements that is both 2-ordered and 3-ordered, what is the maximum number of positions that an element can be from its position if the array were 1-ordered?
 A 1 B 2 C N/2 D 2N-1
Data-Structures       Array       ISRO CS 2013
Question 1 Explanation:
Given data,
Array=2N elements
Elements are used 2-ordered and 3-ordered
Step-1: If array used 2-ordered, if it contains an element which is at most two positions away from its original position in a sorted array.
Sep-2: Maximum number of positions that an element can be from its position if the array were
1-ordered = 1
 Question 2
Let A(1:8, -5:5, -10:5) be a three dimensional array. How many elements are there in the array A?
 A 1200 B 1408 C 33 D 1050
Data-Structures       Array       ISRO CS 2013
Question 2 Explanation:
Array declaration in C language is int A[10] which means there are 10 elements in the array. Similarly int A[10][10] means array consists of the 100 elements.
In the given question, Array is represented with lower bound and upper bound.
The following ARRAY statement defines an array containing a total of five elements, a lower bound of 72, and an upper bound of 76. It represents the calendar years 1972 through 1976: array years{72:76} first second third fourth fifth.
The following ARRAY statement arranges the variables in an array by decades. The rows range from 6 through 9, and the columns range from 0 through 9.
array X{6:9,0:9} X60-X99.
There are 2 questions to complete.