What to review for Quiz 1?

All quizzes take up the last 15 to 20 minutes of the class period. Quiz 1 comes at the end of the second week, when we have covered top-down design and functions. All the quizzes in this course (as well as the final exam) require actual writing of C++ program code. This could include writing a complete function, filling in missing lines of code, or even correcting or modifying existing code. You will never be asked to correct errors of syntax, however you may be asked to correct errors of semantics (logical usage of the code).

Chapter 3 of Friedmann & Koffman describes the structure of a program which includes functions for doing specific tasks. Basically this structure is as follows:

#include <iostream>
using namespace std;

// function prototypes (for each function used in the program)
int main()
{
   // statements and function calls 

   return 0;
}
// function definitions (what each function actually does)

Be sure to understand each of the three parts of function usage. These are described in Friedman & Koffman Sections 3.2, 3.3 and 3.4. Furthermore be sure to review the web page Introdution to Functions, which we cover in class. In Quiz 1 you will be presented with a partial program and will be required to fill in the C++ code for the missing parts in order to complete the program.

Telnet: "condor"