COP1000C Quiz#5 Multiple Choice

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Operands

A comparison is correct only when the correct ____ and operator are used.

Nested

A loop within another loop is known as a(n) ____ loop.

Include statements inside the loop that belong outside the loop

A mistake programmers often make with loops is that they ____.

Neglect to initialize the loop control variable prior to entering the loop body

A mistake programmers often make with loops is that they ____.

Counter

A(n) ____ is any numeric variable you use to count the number of times an event has occurred.

Accumulator

A(n) ____ is very similar to a counter that you use to count loop iterations, except that you usually add a value other than one to this type of variable.

Definite

A(n) ____ loop executes a predetermined number of times.

Summary reports

Business reports that list only totals, with no individual item details, are called ____.

Posttest loop

In a ____, the loop body executes at least one time because the loop control variable is not tested until after one iteration.

Pretest loop

In a ____, the loop body might never execute because the question controlling the loop might be false the first time it is asked.

Validate data

Loops are frequently used to ____; that is, to make sure it is meaningful and useful.

Incrementing

Many loop control variable values are altered by ____ or adding to them.

The entire loop body must execute

Once your logic enters the body of a structured loop, ____.

GIGO

Programmers employ the acronym ____ to mean that if your input is incorrect, your output is worthless.

Elegant

Programmers use the term ____ to describe programs that are well designed and easy to understand and maintain.

For

The ____ loop is particularly useful when processing arrays.

For

The ____ loop provides three actions in one compact statement.

Step

The amount by which a for loop control variable changes is often called a ____ value.

Initialize the loop control variable

The first step in a while loop is typically to ____.

Sentinel value

Use a counter or a(n) ____ to control a loop's repetitions.

Loop control variable

Usually, when you create nested loops, each loop has its own ____.

Outer

When one loop appears inside another, the loop that contains the other loop is called the ____ loop.

Definite

You usually use the for loop with ____ loops.

Forcing

____ a data item means you override incorrect data by setting the variable to a specific value.

Defensive programing

____ is a technique with which you try to prepare for all possible errors before they occur.


संबंधित स्टडी सेट्स

Ch 4 - Physical Development in Infancy and Toddlerhood

View Set

Chapter 18: Aldehydes and Ketones - Nucleophilic Addition to the Carbonyl Group

View Set

Anatomy lecture quiz ( Nervous system)

View Set