Chapter 5: Problem 1
Fill in the blanks in each of the following statements: a) Typically, ________ statements are used for counter-controlled repetition and _________ statements are used 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 __________ statement, when executed in a repetition statement, skips the remaining statements in the loop body and proceeds with the next iteration of the loop. e) The __________ operator can be used to ensure that two conditions are both true before choosing a certain path of execution. f) If the loop-continuation condition in a for header is initially ___________ , the program does not execute the for statement’s body. g) Methods that perform common tasks and do not require objects are called _____________ methods.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.