CS 1713 Introduction to Computer Science, Fall 2007 Exam 1 Comments
The grades were not good on this exam.
If you got below a 70, please come and see me with your exam
this week or next.
Also, be prepared to stay after class on Mondays from 10 until 11 for
a problem session.
- A code segment or method should only print if you are told to do so.
- Java does not have a combined <= symbol.
- The following is invalid: else(weight > 20)
- You can simplify if (won == true) to if (won)
- For Problem 4, most solutions must handle the case of an array
of length 0 separately.
- Diagrams:
- One box for each variable, labeled by the name of the variable.
- For primitive variables, the value is in the box.
- For reference variables (objects, including Strings and arrays)
the box contains an arrow pointing to an object.
- Boxes representing object should contain a labeled box for each
attribute.
You can find the solutions
here.