Chapter 5 Terms

¡Supera tus tareas y exámenes ahora con Quizwiz!

DO-WHILE Loop

A POSTTEST LOOP. A loop that causes a statement of set of statements to repeat UNTIL a condition is true. Once false, it will quit.

WHILE Loop

A PRETEST LOOP. WHILE a condition is true, do some task. (1) A condition that is tested for a true or false value, and (2) a statement or set of statements that is repeated as long as the condition is TRUE.

Infinite Loop

A loop that continues to repeat until the program is interrupted.

Nested Loop

A loop that is inside another loop.

COUNT-Controlled Loop

A loop that repeats a specific number of times. A loop is known as a FOR loop.

CONDITION-Controlled Loop

A loop that that uses a true/false condition to control the number of times it repeats.

Sentinel

A special value that marks the end of a list of values.

Repetition Structure

A structure that causes a statement or set of statements to execute repeatedly.

Running Total

A sum of numbers that accumulates with each iteration of a loop.

Accumulator

A variable used to keep the running total of a sum of numbers.

Iteration:

Each execution of the body of a loop.

Counter Variable

Known simply as COUNTER, it stores the number of iterations that it has performed. The loop performs 3 actions: (1) Initialization: Before the loop begins, the counter variable is initialized to a starting value. The starting value will depend on the situation. (2) TEST: THe loop tests the counter varaible by comparing it to a maximum value. If the counter variable is less than or equal to the maximum value, the loop iterates. If the counter is greater than the maximum value, the program exits the loop.


Conjuntos de estudio relacionados

Lean Six Sigma Black Belt - General Terms and Notes SixSigmaStudyGuide

View Set

Econ 102: Externalities and Public Goods

View Set

Teaching Vocabulary: Growing and Processing Bananas

View Set

SLMC Principles of Speech FINAL (Ch. 7-12)

View Set

Chapter 7 - The Valuation and Characteristics of Bonds

View Set