It is an array with the same number of rows and columns.
A perfect square.
4th
Yes, if it is described as such.
Yes, you can arrange 60 chairs in a square array, but not in a perfect square since 60 is not a perfect square number. The closest way to arrange them would be in a rectangular formation, such as 6 rows of 10 chairs each or 5 rows of 12 chairs each. However, if you strictly want a square array, you would need to use 49 chairs (7x7) or 64 chairs (8x8) to fit the perfect square requirement.
I suppose you could refer to a two-dimensional array as a rectangular or square array (or as a jagged array of not all arrays within a given dimension have the same size). Table, grid or matrix may also be good synonyms for two-dimensional array, subject to the problem domain addressed with the algorithm.
A square array has the same number of columns and rows the array [1] is a square array (a trivial example) the array [1 0] [0 1] is a square array the array [1 0 0 0] [0 1 0 0] [0 0 1 0] [0 0 0 1] is a square array the array [1 0 0 0] [0 1 0 0] [0 0 1 0] is not a square array
A square array is an array in which the number of rows is the same as the number of columns.
A perfect square.
It means indexing into an array. The array could be an array of built in primitive types or array of objects. The index must be a numeric value greater than or equal to 0.
4th
5
Yes, if it is described as such.
2
No.
12
Yes, you can arrange 60 chairs in a square array, but not in a perfect square since 60 is not a perfect square number. The closest way to arrange them would be in a rectangular formation, such as 6 rows of 10 chairs each or 5 rows of 12 chairs each. However, if you strictly want a square array, you would need to use 49 chairs (7x7) or 64 chairs (8x8) to fit the perfect square requirement.
For an array of numbers, it is the square of the sums divided by the sum of the squares.