Skip to content
Related Articles

Related Articles

ISRO | ISRO CS 2013 | Question 1
  • Last Updated : 11 May, 2018

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


Answer: (B)

Explanation: Number of elements in first dimension of array = upper limit – lower limit + 1 = 8 – 1 + 1 =8
Number of elements in second dimension of array = 5 – (-5) + 1 = 11
Number of elements in third dimension of array = 15 – (-10) + 1 = 16
total number of elements = 8 * 11 * 16 = 1408
So, Answer (B) is correct.

Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :