Fill in the blanks in each of the following statements: a) Typically, _________statements are used for counter-controlled
Question:
Fill in the blanks in each of the following statements:
a) Typically, _________statements are used for counter-controlled iteration and _________statements are used for sentinel-controlled iteration.
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 an iteration 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 for statement’s body does not execute.
g) Methods that perform common tasks and cannot be called on objects are called _________methods.
Step by Step Answer: