Chapter 09: Array

1.	Which of the following is the correct usage?
(a)	int a[-40]
(b)	float a[0-40]
(c)	int a[40]
(d)	None

2. Which element is represented by a[10]?
(a)	10th
(b)	11th
(c)	9th
(d)	None

3. A single dimensional array contains N element. What will be the last subscript?
(a)	N-1
(b)	N+1
(c)	N
(d)	None

4. A technique that can be used to concatenate (join) the element of two-dimension array into a single array.
(a)	Merging
(b)	Concatenation
(c)	Joining
(d)	None

5. Cell numbers of a dimensional array are also known as:
(a)	Packets
(b)	Blocks
(c)	Subscripts
(d)	Compartments

6.  A dimensional array is also known as:
(a)	Subscripted variable
(b)	Actual variable
(c)	Compound variable
(d)	None

7. An array element can be accessed through:
(a)	Dots
(b)	Element name
(c)	Index number
(d)	None

8. The element of array [50] are numbered:
(a)	From 1 to 50
(b)	From 1 to 51
(c)	From 0 to 49
(d)	None

9. The following statement: int code[]={25,37,38,42};
(a)	Compartments
(b)	Assigns 38 to code[3]
(c)	Assigns 37 to code[1]
(d)	Assigns 25 to code[1]

10. Indicate the error message which displays, if the following statement is executed:
int a[5] ={28,32,45,68,12};
(a)	Insufficient cells
(b)	Elements exceeding cells
(c)	Elements out of bounce
(d)	None

11. Which of the following functions finds the size of array  char m[]=(‘R’, ‘A’, ‘J’, ‘E’, ‘N’, ‘D’, ‘R’, ‘A’);
(a)	m.size of (a)
(b)	m.length
(c)	m.elements of (m)
(d)	none