AP Computer Science Aeasymcq1 pt

The expression a.length gives

A.the number of elements in the array
B.the last index
C.the first element
D.the sum of the elements

Explanation

Core Concept

length is the array size.

Correct Answer

Athe number of elements in the array

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 →