Fill in the blanks in each of the following statements: a) Typically, _____________ statements are used for
Question:
Fill in the blanks in each of the following statements:
a) Typically, _____________ statements are used for counter-controlled iteration and statements 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, or a String.
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 (with short-circuit evaluation) 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_____________ methods.
Step by Step Answer:
Java How To Program Early Objects
ISBN: 9780134743356
11th Edition
Authors: Paul Deitel, Harvey Deitel