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:
- Everyone should have gotten this one correct.
- Everyone should have gotten this one correct.
- For the first 2 parts you were asked to give the answer in seconds.
- 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.
- Don't forget the try-catch around the Integer.parseInt().
Challenge: what is wrong with the solution given for this problem?
- 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.
- This was the simplest programming problem on the exam.
- Using substring creates a new string object.
- Arrays of object just contain references to the objects.
- Everyone should have gotten this one correct.
Exam 3     
solutions