Midterm 1 Review
Tom Kelliher, CS17
Mar. 6, 1996
-
Definitions from Chapters 1 and 2 (2/5, 2/12 lectures).
-
Top-Down stepwise refinement.
-
Pseudocode design of a problem involving repetition, selection.
-
Programming errors.
-
Character set, tokens, reserved words, identifiers, constants, punctuators,
operators --- Parts of a program.
-
The function required by every program.
-
Increment, decrement, remainder, compound assignment operators.
-
C++ program involving arithmetic expressions and math.h
functions.
-
Expression/sub-expressions: order of evaluation/associativity, types,
value, conversions.
Type hierarchy:
- double
- int
Operator precedence:
- Primary operators --- function call.
- Unary operators (right).
- Multiplicative operators.
- Additive operators.
- iostream operators.
- Assignment operators.
Thomas P. Kelliher
Tue Mar 5 14:06:05 EST 1996
Tom Kelliher