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.](https://cdn1.knowledgeboat.com/img/abp10/1/q1-5-icse-computer-board-2025-year-1134x730.png)
- P[1][1]
- P[0][1]
- P[1][2]
- 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
double x[] = {2.5, 4.5, 5.5, 6.4}; occupies …………… bytes.
- 16
- 4
- 8
- 32
The output of 42 / 6 % 2 is:
- 1
- 10
- 2
- 0
Which of the following is user-defined data type?

- only 1
- 1 and 3
- only 2
- only 4
Select the infinite loop:
- for(int i = 1; i <= 10; i++)
- for(int i = 2; i != 0; i -= 3)
- for(int i = 5; i <= 5; i++)
- for(int i = 1; i >= 1; i--)