CS 1401, Quiz 2, MW class section

Date: Monday, September 8, 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 the value of the variable x after performing the following Java statement:

int x = 7 − 10 % 2 / 3;
Explain step by step how this value will be computed

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

double x = 3;
double y = x + 1;
x = y − 2;
System.out.println(x);
System.out.println(y);