AP Computer Science Aeasymcq1 pt

The index of the last element in an array of length 5 is

A.4
B.5
C.0
D.6

Explanation

Core Concept

Last index is length minus one.

Correct Answer

A4

More Unit 6: Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 6: Array Questions →