CS 1713 Introduction to Computer Science, Fall 2009 Exam 2 Comments

The exam average was 67.
If you got below 60, you are not prepared to continue with this course.

  1. In each case you should be printing a message only if the condition is satisfied. This means that you do not print anything if the condition is not satisfied. Note that 5 and 9 are both in the range.
  2. Many students got his one wrong. Some did not get paid for the first 20 hours if they worked more than 20 hours. Some got paid twice for the hours over 20.
  3. The while clause should be true when the number entered is the wrong one.
  4. The "Any additional output ..." means that you should do a println when done.
  5. Nobody answered "error" for 5c. Congratulations.
  6. Always use .equals to compare strings.
  7. In this problem you are to return a position, the the value of the largest entry.
  8. You lost one point if you fond the first one. Many students just checked the first array element.
  9. No loop here. You need to declare the temp variable.
  10. You need to know what instantiate means.
  11. For primitive variables, the value goes in the box.
  12. This is identical to the problem from the review web site.
  13. An array variable holds a reference.
  14. This was hard, but a few were able to come close.