Chapter 5 Fill-in-the-Blank (book)

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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

pre-test

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

prefix

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 begin with.

while & 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

The ____ loop always iterates at lease once.

do-while

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

for

To___ a value means to increase it by one, and to ___ a value means to decrease it by one.

increment decrement

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

infinite

Inside the for loops parentheses, the first expression is the ___, the second expression is the ___, and the third expression is the ____.

initialize test update

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

iteration

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

nested

Each repetition of a loop that evaluates its test expression after each repetition is known as the _____

post-test loop

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

postfix


Set pelajaran terkait

تاريخ الاردن الوحدة الثانية

View Set

Exam 2 - Bone fracture Classifications

View Set

Absolute and Difference Thresholds

View Set

Chapter 12: Statement of Cash Flows

View Set

5. What is the Coriolis effect? What impact does it have on global circulation?

View Set

Solving Quadratic Equations by Completing the Square and Square Roots

View Set

Unit 6: Lesson 2: LS Assignment 2

View Set

BLAw CH 19--The formation of sales and leases contracts

View Set