CS 1401, Quiz 3

Date: Tuesday, September 17, 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 will be printed as the result of the following piece of code? explain step-by-step:

  int i = 2;
  int j = i++;
  System.out.println(i);
  System.out.println(j);
  j = ++i;
  System.out.println(i);
  System.out.println(j);
  i += 2;
  System.out.println(i);
  System.out.println(i + j);
  System.out.println(i + "; " + j);