Quiz 5

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

loop

A ____ is a control structure that causes a statement or group of statements to repeat.

counter

A ____ is a variable that is regularly incremented or decremented each time a loop iterates.

loop

A ____ is part of a program that repeats.

update

A common kind of reassignment is a(n) ___, where the new value of the variable depends on the old.

nested loop

A loop that is inside another loop is called a ____.

infinite loop

A repeating sequence of instructions that has no way to stop repeating would be a(n) ___.

iteration

A single pass through a loop is known as a(n) ___.

running total, accumulator

A(n) [a] is a summation that is continually adjusted to take account of items as they are "seen" by a program; these summations are stored in a variable referred to as a(n) [b].

infinite loop

A(n) ___ is a loop in which the terminating condition is never satisfied.

infinite loop

A(n) ___ is a sequence of instructions in a computer program which loops endlessly.

sentinel

A(n) ___ is a special value that cannot be mistaken as a member of data and signals that there are no more data values to be entered.

running total

A(n) ___ is a summation that is continually adjusted to take account of items as they are "seen" by a program.

flag

A(n) ___ is raised when the program detects that an event has occurred.

sentinel

A(n) ___ is used to indicate the end of data.

initialization expression

A(n) ____ is the first expression in a for loop header. It is normally used to initialize a counter variable to its starting value. This is the first action performed by the loop, and it is only done once.

update

An assignment where the new value of the variable depends on the old is a(n) ___.

postfix mode

In ____, the increment or decrement operator is placed after the variable.

prefix mode

In ____, the increment or decrement operator is placed before the variable.

posttest loop

In a ____ loop, the loop's expression is tested after each iteration.

pretest

In a ____ loop, the loop's expression is tested prior to an iteration.

loop header

The first line of a while or for loop is the ____.

priming read

The read operation that takes place just before an input validation loop is called a ____. It provides the first value for the loop to test.

loop body

The statement or block of statements that repeat is known as the ____.

update expression

The third expression in a for loop header is the ____. It executes at the end of each iteration. Typically, this is a statement that increments the loop's counter variable.

decrement decreases, increment increases

To [a] is to decrease the value of a variable, usually by the value of one, while to [b] is to increase the value of a variable, usually by the value of one.

initialize

To ___ a variable is to store a value in the variable for the first time.

count controlled

With a(n) ___ loop, the number of repetitions is known before the loop begins executing.

event-controlled

With a(n) ___ loop, the number of repetitions is unknown before the loop begins executing.

repetition, iteration

[a] is repeated execution of a set of statements; one execution of the set of statements is referred to as a(n) [b].

multiple assignment

___ describes how a variable in a loop stores different values throughout the execution of the loop.

iteration, repetition, loop

___ is repeated execution of a set of statements.

input validation

____ is the process of inspecting data given to a program by the user and determining if it is valid.


Ensembles d'études connexes

Chapter 9 - Interest Groups: Organizing for Influence

View Set

HESI / NCLEX Leadership and Management

View Set

MANA3335 MindTap Learn It: Chapter 07: Organization Change and Innovation

View Set

Lesson 9: Installing and Configuring Security Appliances

View Set

CALIFORNIA LIFE ONLY LIFE INSURANCE STATE EXAM

View Set

Unit 1 : Primary Markets and Secondary Markets

View Set