CS 1401, Quiz 9, MW 9-10:20 version

Date: Monday, October 28, 2013
Name (please type legibly, ideally in block letters): ______________________________________________________________________

1. Mark what new material is covered (Y) and what is not covered (N) in the chapter that you were supposed to read for this week:

2. What will be printed as a result of the following code? Explain your answer by tracing step-by-step:

int[] a = {10, 20, 30};
for(int i = 1; i < a.length; i++)
  {a[i]--;}
System.out.println(a[0]);
System.out.println(a[1]);