Multiple choice technology testing

When we create a 2 dimention array, an element in the created array can be referenced by how many indices?

  1. 2

  2. 1

  3. 3

  4. No index is required for referencing an element in a 2D array. Index is applicable only for 1D arrays.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A 2-dimensional array requires exactly 2 indices to reference an element: one for the row and one for the column (e.g., array(1,2)). Option B is incorrect because one index only works for 1D arrays. Option C is incorrect as 2D arrays don't use 3 indices. Option D is incorrect because all arrays require indices for element access.