Asked by Dalton Gross on Jul 13, 2024

verifed

Verified

char[][] table = new char[10][5];How many dimensions are in the array seen in the accompanying figure?

A) 1
B) 2
C) 5
D) 10

Char[][]

A two-dimensional array of characters in programming, often used to store matrix or grid-like data such as a tic-tac-toe board.

Dimensions

The measure of the size or extent of an object in one direction, often used in the context of arrays and matrices in programming.

  • Differentiate among the quantity of elements, positions of elements, and the number of dimensions in arrays.
verifed

Verified Answer

CG
Cristal GaribayJul 19, 2024
Final Answer :
B
Explanation :
The array seen in the figure is a 2-dimensional array because it has 2 sets of brackets and can be visualized as a grid with rows and columns. The first set of brackets is for the rows, and the second set of brackets is for the columns. The size of the array is 10 rows by 5 columns.