C++ chapter 5

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

A loop that evaluates its test expression after each repetition is a(n) __________ loop.

posttest loop

When the increment or decrement operator is placed before the operand (or to the operand's left), the operator is being used in __________ mode.

prefix

A loop that evaluates its test expression before each repetition is a(n) __________ loop.

pretest

A(n) __________ is a sum of numbers that accumulates with each iteration of a loop.

running total

A(n) __________ is a special value that marks the end of a series of values.

sentinel

The __________ and __________ loops will not iterate at all if their test expressions are false to start with.

while and for

A(n) __________ is a variable that is initialized to some starting value, usually zero, and then has numbers added to it in each iteration of a loop.

accumulator

The statement or block that is repeated is known as the __________ of the loop.

body

The __________ statement causes a loop to terminate immediately.

break

The __________ statement causes a loop to skip the remaining statements in the current iteration.

continue

A(n)__________ is a variable that "counts" the number of times a loop repeats.

counter

To __________ a value means to decrease it by one.

decrement

The __________ loop always iterates at least once.

do-while

The __________ loop is ideal for situations that require a counter.

for

To __________ a value means to increase it by one

increment

A loop that does not have a way of stopping is a(n) __________ loop.

infinite (or endless)

Inside the for loop's parentheses, the first expression is the __________ , the second expression is the __________ , and the third expression is the __________.

initialization, test, update

Each repetition of a loop is known as a(n) __________.

iteration

A loop that is inside another is called a(n) __________ loop.

nested

When the increment or decrement operator is placed after the operand (or to the operand's right), the operator is being used in __________ mode.

postfix


Conjuntos de estudio relacionados

Quotes from Albert Einstein Will Change Your Life

View Set

Accident and Health Insurance Basics

View Set

World History II -- French Revolution TEST -- Date: 11/17/23

View Set

M259 (7) - Analytic Trigonometry

View Set

Chapters 20-22: Electricity and Circuits

View Set

ENGLISH 4 COLLEGE PREP : MODULE 01 : LESSON 07 INTRO: EVALUATING YOUR WRITING

View Set