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 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, or a String. 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.