Homework : Due November 23rd

 

Read chapter 7, sections 7.1 - 7.3

  1. Subscript numbering of arrays in Java always begins with what number?
  2. Does Java initialize array elements? If so, to what value?
  3. Does Java perform bounds checking? What is bounds checking?
  4. Declare an array of ints, with 5 elements, and initialize it to hold the values 2,4,6,8, and 10.
  5. What’s the difference between the two declaration statements?
            int [] a, b, c;
            int a[], b, c;
    
  6. Complete checkpoints 7.1-7.8.
  7. Describe the public field length which is part of each array in Java.
  8. What is the enhanced for loop?
  9. How do you copy one array to another?
  10. Complete checkpoints 7.9-7.12.
  11. Can you pass an array to a method?
  12. Complete checkpoints 7.13-7.14.
  13. Complete Multiple Choice and True/False: questions 2-6, and 14-20
  14. Complete Find The Error: 1-3
  15. Complete Algorithm Workbench: 1-2

Email Me | Office Hours | My Home Page | Department Home | MCC Home Page

© Copyright Emmi Schatz 2013