Computer Applications
Which data structure is represented in the below picture?

(i) A two-dimensional array with 2 rows and seven columns.
(ii) A one-dimensional array with 14 elements.
- Both (i) and (ii)
- Only (i)
- Only (ii)
- None of the (i) and (ii)
Java Arrays
2 Likes
Answer
Only (i)
Reason — A two-dimensional array is a collection of elements arranged in rows and columns. The ice tray shown in the figure looks like a grid with 2 rows and 7 columns, just like a 2D array.
Answered By
2 Likes
Related Questions
Which of the following is a valid initialisation statement?
- int x = "GOOD";
- int y = 45.0/2;
- int z = (int)'x';
- int m = false ;
Which of the following is a valid statement to print the following sentence:
Raj said "Good morning"
- System.out.println("Raj said "Good morning");
- System.out.println("Raj said \\Good morning\\);
- System.out.println("Raj said \"Good morning\" ");
- System.out.println("Raj said Good morning");
What is the type of looping statement depicted in the below picture?

- Entry controlled loop
- Exit controlled loop
- Multiple branching statement
- All the above.
What is the process done in the below picture?

- Sorting the list in descending order
- Searching the character in the list
- Sorting the list in ascending order.
- None of the above.