Do this Quiz on Session 4 as you watch the videos and do the reading (as listed below). This document is a Microsoft Word document; here is the same Quiz on Session 4 (pdf) as a PDF.
You can either:
All of the following are required except the items labeled Optional are, well, optional (i.e., things that may be interesting but do not directly pertain to your success in this course).
Note: Do not try to learn all the details of the Debugger — just breeze through this video to get the ideas, and return to it later as needed. The questions in the quiz highlight the main points.
This is a very nice, very important section; read it carefully. After reading it, you should be quite clear about the following (some of which you have seen before this reading):
Focus your attention on:
This tip explains the importance of comments, but you have seen that forcefully presented in a preceding video on specifications. This section contrasts the style used in the text with the style that we use in your assignments.
As the section points out, the key is not which style you use (that depends largely on the coding standards of your organization) but rather that:
The function comment does not document the implementation (how the function does what it does) but rather the design (what the function does, its inputs, and its results). The comment allows other programmers to use the function as a “black box”.
Focus your attention on:
You will have already absorbed the key ideas of this section from other sources and the exercises you have already done in class. However, you might (or might not) find the following valuable:
Leave this section with a clear understanding of the difference between print and return.
For both of the above, the quiz will help make the ideas concrete. Bring your questions to class — you are likely to have questions about this material.