Self-Review Exercises (Sections C.14C.20)

C.8 Fill in the blanks in each of the following statements:

a) Typically, _____________statements are used for counter-controlled repetition and _____________statements for sentinel-controlled repetition.

b) The do...while statement tests the loop-continuation condition _____________executing the loop’s body; therefore, the body always executes at least once.

c) The _____________statement selects among multiple actions based on the possible values of an integer variable or expression.

d) The _____________operator can be used to ensure that two conditions are both true before choosing a certain path of execution.

e) If the loop-continuation condition in a for header is initially _____________, the program ...

Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.