KnowledgeBoat Logo
|

Computer Applications

Consider the Two dimensional array S[2][3], of storage devices given below, state the index of the Hard disk.

Consider the Two dimensional array S[2][3], of storage devices given below, state the index of the Hard disk? ICSE 2025 Computer Applications Solved Question Paper.
  1. S[1][0]
  2. S[0][1]
  3. S[1][2]
  4. S[0][0]

Java Arrays

3 Likes

Answer

S[1][0]

Reason — In a two-dimensional array S[2][3], the first index represents the row and the second index represents the column, both starting from 0. Based on the given arrangement of storage devices, the element "Hard disk" is located in the second row (index 1) and first column (index 0), so its index is S[1][0].

Answered By

1 Like


Related Questions