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

Explanation

Core Concept

Diagonal elements have equal indexes.

Correct Answer

Athe row index equals the column index

More Unit 8: 2D Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 8: 2D Array Questions →