CS 1401, Quiz 2

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

1. Mark what is covered (Y) and what is not covered (N) in the part of Chapter 2 that you were supposed to read:

2. What is 10%3? Give a numerical value.

3. What will be printed as the result of the following piece of code? explain step-by-step:

  int x = 1;
  int y = x;
  x = y + 1;
  System.out.println(x);
  System.out.println(y);