High: 100 (5)
Low: 20
Average: 71.5
Name: ______Key_________
Quiz 2 (Week 3)
CS-150, Fall ‘02, Dr. C. S. Tritt
Each question is worth the same amount.
a. else – a keyword
b. abc123
c. 123abc – begins with a digit
d. abc$ – contains an illegal character
e. #abc – contains an illegal character
a. _MyCount
b. myCount
c. my_count
d. my count – contains a space
double weight; // Weight of eggs in
grams.
1st mistake –10, 2nd mistake –5,
missing ; - 2 and including comment + 5.
3 / 4 + 5 * 6
= 0 + 5 * 6 = 30
6. + 5. / 4. - 3. = 6. + 1.25 – 3 = 4.25
Math errors on problems 4 and 5 were
–2.