C++ chapter 5

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

sentinel

A ______ is a special value that marks the end of a series of values.

running total

A ______ is a sum of numbers that accumulated with each iteration of a loop.

counter

A ______ is a variable that counts the number of times a loop repeats.

accumulator

A ______ 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.

infinite or endless

A loop that does not have a way of stopping is called an ______ loop.

posttest

A loop that evaluates its test expression after each repetition is an ______ loop.

pretest

A loop that evaluates its test expression before each repetition is an ______ loop.

nested

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

iteration

Each repetition of a loop is known as a ______.

initialization, test, update

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

while and for

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

do-while

The ______ loop is always iterates at least once.

continue

The ______ statement causes 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.

for

The______ loop is ideal for situations that require a counter.

increment, decrement

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

postfix

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

prefix

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


Kaugnay na mga set ng pag-aaral

Chapter 18: "Civilization's Inferno": The Rise and Reform of Industrial Cities, 1880-1917

View Set

Firefighter 2 - SASCS practice tests

View Set

Psychology, Module 47 Social-Cognitive Theories and the Self

View Set

Chapter 14 Learn Smart Power, Influence, Leadership

View Set

Ch. 11 - Conventional Mortgage Loans

View Set

Interview and Interrogation Midterm Fall 2018

View Set

Health and Life Insurance Study Guide

View Set

Biology I: Chapter 24: McGraw Hill

View Set