Question: What will this code fragment return?

  1. It returns a 5x5 matric; each row will have the values 1,2,3,4,5.
  2. It returns an array with the values 1,2,3,4,5
  3. It returns five different square matrices filled with ones. The first is 1x1, the second 2x2, and so on to 5x5
  4. It returns a 5-dimensional array of size 1x2x3x4x5 filled with 1s.

Answer: The correct answer of the above question is Option D:It returns a 5-dimensional array of size 1x2x3x4x5 filled with 1s.