• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/31

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

31 Cards in this Set

  • Front
  • Back

loop

Structures that allow repeated execution of a block of statements

loop body

The block of statements that executes when the Boolean expression that controls the loop is true

iteration

one loop execution

while loop

execute a body of statements continually as long as the Boolean expression that controls the entry into the loop continues to be true

definite loop / counted loop / counter-controlled loop

loop that executes a specific number or tines

indefinite loop / event-controlled loop

the number of loops is unknown

loop control value

variable whose value determines whether loop execution continues

empty body

Block with no statements in it

infinite loop

Loop that never ends

incrementing

Variable adds 1 to its value

Decrementing

Variable reduces its value by 1

Validating data

Process of ensuring that a value falls within a specified range

Priming read / priming input

First input statement prior to a loop that will execute subsequent input statements for the same variable

Counting

Process of continually incrementing a variable to keep track of the number of occurrences of some event

Accumulating

Process of repeated the increasing the value by some amount to produce a total

add and assign operator

(+ =) alters the value of the operand on the left by subtracting the operand on the right from it

subtract and assign operator

(- =) alters the value of the operand in the left by subtracting the operand on the right from it

multiply and assign operator

(* =) alters the value of the operand on the left by multiplying the operand on the right from it

divide and assign operator

(/ =) alters the value of the operand on the left by dividing the operand on the right into it

Remainder and assign operator

(% =) alters the value of the operand in the left by assigning the remainder when the left operand is divided by the right operand

Prefix ++


Prefix increment operator

Adds 1 to a variable, then evaluates it

Postfix ++


Postfix increment operator

Evaluates a variable, then adds 1 to it

prefix and postfix decrement operators

Subtract 1 from a variable

for loop

Special loop that can be used when a definite number of loop iterations is required

Pretest loop

One in which the loop control variable is tested before the loop body executes

do...while loop

Executes a loop body at least one time; it checks the loop control variable at the bottom of the loop after one repetition has occured

Posttest loop

One in which the loop control variable is tested after the loop body executes

Inner loop

Contained entirely within another loop

Outer loop

Contains another loop

Do-nothing loop

One that performs no actions other than looping

Loop fusion

Technique of combining two loops into one