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:

Verified
Correct Answer:
Verified
Q107: When the order of the elements is
Q108: What (if anything) is wrong with the
Q109: What is the output of the following
Q110: Which one of the following statements is
Q111: What will be printed by the statements
Q112: Which code snippet calculates the sum of
Q113: Consider the code snippet below: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q115: Which statement is true about the code
Q116: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q117: Which one of the following is a