Midterm 1 Review

Tom Kelliher, CS17

Mar. 6, 1996

  1. Definitions from Chapters 1 and 2 (2/5, 2/12 lectures).

  2. Top-Down stepwise refinement.

  3. Pseudocode design of a problem involving repetition, selection.

  4. Programming errors.

  5. Character set, tokens, reserved words, identifiers, constants, punctuators, operators --- Parts of a program.

  6. The function required by every program.

  7. Increment, decrement, remainder, compound assignment operators.

  8. C++ program involving arithmetic expressions and math.h functions.

  9. Expression/sub-expressions: order of evaluation/associativity, types, value, conversions.

    Type hierarchy:

    1. double
    2. int

    Operator precedence:

    1. Primary operators --- function call.
    2. Unary operators (right).
    3. Multiplicative operators.
    4. Additive operators.
    5. iostream operators.
    6. Assignment operators.


Thomas P. Kelliher
Tue Mar 5 14:06:05 EST 1996
Tom Kelliher