Section 1

Preview this deck

sentinel value

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (15)

Section 1

(15 cards)

sentinel value

Front

A special input value that signifies the end of the input

Back

step value

Front

Used in the range function to increase or decrease the current value

Back

loop-continuation-condition

Front

A Boolean expression that controls the execution of the body. After each iteration, this is reevaluated. If the condition is true, the execution of the loop body is repeated. If the condition is false, the loop terminates

Back

break statement

Front

Break out of the current loop

Back

Output redirection

Front

Send the output to a file rather than displaying it on the console

Back

loop body

Front

The part of the loop that contains the statements to be repeated

Back

nested loop

Front

Consists of an outer loop and one or more inner loops. Each time the outer loop is repeated, the inner loops are reentered, and all required iterations are performed

Back

condition-controlled loop

Front

The while loop controlled by a true/false condition

Back

iteration

Front

One time execution of the loop body

Back

infinite loop

Front

A loop that runs indefinitely due to a bug in the loop

Back

loop

Front

A structure that control repeated executions of a block of statements

Back

off-by-one error

Front

A common in the loop because the loop is executed one more or one less time than it should have been

Back

count-controlled loop

Front

The for loop that repeats a specified number of times

Back

continue statement

Front

Break out of the current iteration

Back

input redirection

Front

Getting input from a file rather from the console using the < symbol in the command line

Back