7.15 Perfect Size Arrays
Across
- 2. A perfect size array can be used for names of days of the week since the number of days in a week is _______.
- 3. (T/F?) Changing parameter names will not alter the execution of the method.
- 6. (2 words) Type of array where number of elements is EXACTLY equal to memory allocated.
- 7. (Fill) ____ of array elements & its ____ are accessed from the array reference.
- 9. When an array reference passed to a method, the method can ______ the contents of the original array.
- 10. This method takes an array reference & a given value & stores that value at each array element.
- 11. A perfect size array can be used since changing the _____ of the contents of the array DOES NOT MODIFY the number of elements in the array.
- 13. What is vowels.length? char[] vowels = {'a', 'e', 'i', 'o', 'u'};
- 14. Perfect size arrays can be _______ from methods. [Ex: double[] createInitializedArray(int numberElements, double initializeValue)]
- 15. In double[] createInitializedArray(int numberElements, double initializeValue), the second parameter contains the assigned _____ to the array element.
Down
- 1. This of an array creates perfect size arrays setting the length & initializing each element to given values.
- 4. Array initialization only occurs when ______ is declared & should be initialized once, otherwise error.
- 5. (2 words) Size of an array(s) must come from the ____ ____ of an array to indicate the array(s) is perfect size.
- 7. A method having a parameter of the array size indicates that it is ____ perfect size.
- 8. In double[] createInitializedArray(int numberElements, double initializeValue), the first parameter is the _____ of elements put into an array.
- 12. A perfect size array is passed to a method using only the array's what?