Solved

When an Array MyArray Is Only Partially Filled, How Can

Question 114

Multiple Choice

When an array myArray is only partially filled, how can the programmer keep track of the current number of elements?


A) access myArray.length()
B) maintain a companion variable that stores the current number of elements
C) access myArray.currentElements()
D) access myArray.length() - 1

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions