7.15 Perfect Size Arrays

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