CS 1401, Quiz 9, TR version

Date: Tuesday, October 29, 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};
int max = 10;
for(int i = 1; i < a.length; i++)
  {if(a[i] < max)
     {max = a[i];}
  }
System.out.println(max);