Quiz I (Section I - Solution)
Quiz I (Section I - Solution)
COE 212
Engineering Programming (Section I)
Spring 2014
W. FAWAZ
Quiz I
Problem I
4) If you want to output the text ‘hi there’, include the single quote marks,
which of the following could do that?
a. System.out.print(“‘hi there’”);
b. System.out.print(“\‘hi” + “there’\”);
c. System.out.print(“\‘hi” + “there\’”);
d. None of the above
4. After running the code shown below, the value stored in the variable y is 13
int y = 7;
y = --y + y;
Answer: True False