Computer Applications

Consider the two-dimensional array P[2][3], of peripherals (input/output devices) given below, state the index of the device Barcode Scanner.

Consider the two-dimensional array P[2][3], of peripherals (input/output devices) given below, state the index of the device Barcode Scanner. ICSE 2025 Computer Applications Solved Question Paper.
  1. P[1][1]
  2. P[0][1]
  3. P[1][2]
  4. P[0][0]

Java Arrays

5 Likes

Answer

P[1][1]

Reason — In a two-dimensional array P[2][3], the first index represents the row and the second index represents the column. The device "barcode scanner" is located in the second row (index 1) and the second column (index 1), so its index is P[1][1].

Answered By

3 Likes


Related Questions