• edited by
11,447 views
12 12 votes

Let $A(1:8, -5:5, -10:5)$ be a three dimensional array. How many elements are there in the array $A$?

  1. $1200$
  2. $1408$
  3. $33$
  4. $1050$

4 Answers

Best answer
32 32 votes
I am just attempting it not sure

Here i think they have specified the size

So 1:8 mean 8 elements ( both are inclusive  )

(-5 : 5 ) mean 11 elements

(-10 : 5 ) mean 16 elements

So no of elements will be ( just like Multidimensional array will be ) 8*11*16=1408

so option b
• selected by
5 5 votes
ul = upper limit

ll=lower limit

 

(ul3-ll3+1) x  (ul2-ll2+1) x(ul1-ll1+1) =(8-1+1) x( 5- (-5)+1)  x   (5 +10+1) =1408
2 2 votes
Length of First dimension =8-1+1=8

Length of Second dimensions =5-(-5)+1=11

Length of Third dimensions =5-(-10)+1=16

Number of elements= 8×11×16= 1408
0 0 votes
8 2d arrays
one array has 11 rows and 16 columns
so
one 2d array has 16*11 elements
so all are
8*16*11=1408
Answer:
Position:
Show:

Related questions

10 10 votes
3 answers 3 answers
13.6k
13.6k views
Misbah Ghaya asked Apr 25, 2016
13,572 views
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-or...
5 5 votes
2 answers 2 answers
8.8k
8.8k views
Misbah Ghaya asked Apr 27, 2016
8,762 views
Which of the following number of nodes can form a full binary tree?8151413
7 7 votes
2 answers 2 answers
3.5k
3.5k views
Misbah Ghaya asked May 13, 2016
3,548 views
The number of elements in the power set of the set {{A, B}, C} is$7$$8$$3$$4$
9 9 votes
1 answers 1 answer
6.8k
6.8k views
Misbah Ghaya asked May 13, 2016
6,827 views
Let $P(E)$ denote the probability of the occurrence of event $E$. If $P(A)= 0.5$ and $P(B)=1$ then the values of $P(A|B)$ and $P(B|A)$ respectively are$0.5, 0.25$$0.25, 0...