CS 1401, Quiz 3, TR class section

Date: Tuesday, September 16, 2014
Name (please type legibly, ideally in block letters): ______________________________________________________________________

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

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

int x = 3;
x /= 2;
System.out.println(x);
int y = --x;
System.out.println(x);
System.out.println(y);
x = y − y--;
System.out.println(x);
System.out.println(y);