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

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

    1. Typically,            statements are used for counter-controlled repetition and            statements for sentinel-controlled repetition.

    2. The dowhile statement tests the loop-continuation condition            condition executing the loop’s body; therefore, the body always executes at least once.

    3. The            statement selects among multiple actions based on the possible values of an integer variable or expression.

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

    5. If the loop-continuation condition in a for header is initially           , the program does not execute ...

Get Android How to Program, 3/e 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.