Problem 2
Describe the difference between pretest loops and posttest loops.
Problem 3
Why are the statements in the body of a loop called conditionally executed statements?
Problem 6
Which loop should you use in situations where you wish the loop to repeat until the test expression is false, but the loop should execute at least one time?
Problem 7
Which loop should you use when you know the number of required iterations?
Problem 9
Why is critical that accumulator variables be properly initialized?
Problem 12
What data type do you use when you want to create a file stream object that can write data to a file?
Problem 14
Why should a program close a file when it's finished using it?
Problem 19
The statement or block that is repeated is known as the ___________ of the loop.
Problem 20
Each repetition of a loop is known as a(n) ____________.
Problem 26
\(\mathrm{A}(\mathrm{n})\) ______________ is a variable that is initialized to some starting value, usually zero, and then has numbers added to it in each iteration of a loop.