Wednesday 27 May 2015

Q7Paper 2, J13.How many values can be held by an array A(–1,m;1,m) ?



(A) m
(B) m2
(C) m(m+1)
(D) m(m+2).


Answer D.

-1 to 3 has 5 entry. (-1,0,1,2,3 )
1 to 3 has 3 entry (1,2,3)
So array  size is of 15
If m=3
Than size is m(m+2).

1 comment:

Note: only a member of this blog may post a comment.