1. Java Concept Matching.
- counting loop
- used to perform a repetitive task when the number of iterations required is known beforehand
- conditional loop
- used to perform repetitive tasks when the number of iterations depends on a non-counting bound
- for statement
- a structured loop, with three parts in the header, designed to make counting loops easier to code
- while statement
- a conditional loop that has one part in the header, where the loop bound is checked before the loop body is executed.
- do-while statement
- a conditional loop that has one part in the header, where the loop bound is checked after the loop body is executed, so this kind of loop is always executed at least once
- zero indexing
- counting starts at zero
- unit indexing
- counting starts at one
- sentinel bound
- a special value used to stop the loop
- limit bound
- a value that a loop approaches incrementally and when reached the loop terminates
- counting bound
- a value that stops the loop when the specific count is reached
- flag bound
- a boolean variable that stops the loop when its value is set to true
- loop initializer
- a statement executed before the first iteration of a loop
- loop updater
- a statement that is executed (typically at the end of) each iteration
- named constant
- a final variable whose value remains the same throughout the program
- literal
- an actual value or quoted string
- compound statement
- A sequence of simple statements contained withing a set of curly braces
- null statement
- The absense of a statment, signified by empty curly braces or a semicolon by itself.
Match the loop terms to the definitions.