Computer Science C++ Chapter 5

Ace your homework & exams now with Quizwiz!

infinite (or endless)

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

post-test

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

pre-test

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

nested

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

accumulator

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.

Sentinel

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

running total

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

counter

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

Iteration

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

initialization, test, update

Inside the for loop's parenthesis, the first express is the _____, the second expression is the _____, and the third expression is the _____.

while, for

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

do-while

The _____ loop always iterates at least once.

for

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

continue

The _____ statement cause a loop to skip the remaining statements in the current iteration.

break

The _____ statement causes a loop to terminate immediately.

body

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

increment, decrement

To _____ a value means to increase it by one, and to _____ a value means to decrease it by one.

postfix

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

prefix

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


Related study sets

500 woorden die je moet kennen --> media

View Set

Contracts Midterm 2 Class Hypotheticals

View Set

Module 12 Review Quiz: Linux installation and configuration

View Set

Vascular Disorders - Multiple Choice

View Set

Fundamentals ATI Health Care Delivery Module

View Set

Mom & Baby Prep U questions 19, 20, 21, 22, 23, 24, 25

View Set

LIB160H Potential Exam Questions

View Set