AP Computer Science Amediummcq1 pt
The main diagonal of a square array consists of elements where
A.the row index equals the column index
B.the row index is zero
C.the column index is zero
D.the indexes sum to the length
Diagonal elements have equal indexes.
Athe row index equals the column index
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →