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.](https://cdn1.knowledgeboat.com/img/abp10/1/q1-18-icse-computer-board-2025-improvement-1133x731.png)
- S[1][0]
- S[0][1]
- S[1][2]
- 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
System.out.println(Math.round(Math.ceil(-8.8)));will result in:- 8.0
- -8.0
- -9
- -8
Which one of the following Java statements assign 100 to the last element of a 3 × 3 array?
- x[2][2]=100;
- x[3][3]=100;
- x[2][3]=100;
- x[3][2]=100;
How many times the for statement given below is executed?
for(k = 10; k >= 0; k--)- 10
- 11
- 12
- 0
Consider the following program segment in which the statements are jumbled. Choose the correct order of the statements to return the sum of first 10 natural numbers.
for(i=1; i<=10; i++) → 1 return sum; → 2 int sum = 0, i; → 3 sum+=i; → 4- 1 2 3 4
- 3 4 1 2
- 1 4 2 3
- 3 1 4 2