IT 114: Introduction to Java
Class 15 Ungraded Quiz

  1. If you had an array numbers, what would you write to get the first value.


  2. If the array numbers contained 5 values, what would you write to get the last value?


  3. What do you call the values in an array?


  4. Can an array contain values of different data types?


  5. Can you change the size of an array after you have declared it?


  6. What would you write if you wanted to change the 2nd value in the array numbers to 6?


  7. What do you call the number that specifies a particular value inside an array?


  8. What expression would you write to get the length of the array numbers?


  9. Rewrite the statement below using and augmented assignment operator.
    x = x + 1



  10. Rewrite the statement below using and augmented assignment operator.
    y = y - 1