CS 1713 Introduction to Computer Science, Spring 2012 Exam 3 Comments

The exam average was 56 and the median was 56
There were some very low grades on this exam.
If you got below a 50 on this exam, you need to take serious action.

Some comments on particular problems:

  1. Everyone should have gotten this one correct.
  2. Everyone should have gotten this one correct.
  3. For the first 2 parts you were asked to give the answer in seconds.
  4. You only had to write the compareTo method. This method takes an Object parameter. Since the method is in the MyDate class, it can access the attributes directly, with using a get method.
  5. Don't forget the try-catch around the Integer.parseInt().
    Challenge: what is wrong with the solution given for this problem?
  6. Don't put the creation of the PrintWriter in the loop. This would make a PrintWriter for each line read in, and each PrintWriter would overwrite the first line of the previous one.
  7. This was the simplest programming problem on the exam.
  8. Using substring creates a new string object.
  9. Arrays of object just contain references to the objects.
  10. Everyone should have gotten this one correct.

Exam 3      solutions