If you do not know the size of the array needed, you can create an array large enough to hold any number of entries and tell users to enter a predetermined sentinel value after they enter the last value. Using this approach:
A) requires that you increment a counter as values are entered so that you know how many elements are stored in your array
B) is preferred to defining a static sized array.
C) requires that you dimension the array to hold at least 100 entries.
D) requires the array be defined to hold string elements.
Correct Answer:
Verified
Q40: The index is also referred to as
Q41: int [ ] anArray = new int
Q42: One of the special properties in the
Q43: BinarySearch( ) is _.
A) a method in
Q44: _ creates a copy of the array
Q46: int [ ] anArray = new int
Q47: int [ ] anArray = new int
Q48: If an array is to be sent
Q49: Which of the following could be a
Q50: When two or more arrays have a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents