5.1 a) sequence, selection, repetition. b)
else. c) counter-controlled (or definite). d) sentinel, signal, flag or dummy. e) sequence. f)
0 (zero). g) strongly typed. h) prefixed.
5.2 a) True. b) False. A set of statements contained within a pair of braces (
}) is called a block. c) False. A repetition statement specifies that an action is to be repeated while some condition remains true. A selection statement determines whether an action is performed based on the truth or falsity of a condition. d) True. e) True. f) True. g) False. The unary cast operator (
double) creates a temporary floating-point copy of its operand. h) False. Instance variables of type
bool are given the value
false by default. i) ...