# Chapter 5 Flashcards Preview

## Intro to Programming Logic and Design > Chapter 5 > Flashcards

Flashcards in Chapter 5 Deck (21)
1
Q

Loop Control Variable

A

A variable that determines weather a loop will continue

2
Q

Definite Loop

A

Which the number of repetitions is predetermined value.

3
Q

Counted or Counter-Contolled Loop

A

A loop whose repetitions are managed by a counter.

4
Q

Increment

A

A variable is to add a constant value to it, frequently 1.

5
Q

Decrement

A

A variable is to decrease it by a constant value, frequently 1.

6
Q

Counter

A

Any numeric variable you use to count the number of times an event has occurred.

7
Q

Indefinite Loop

A

One for which you cannot predetermine the number of executions.

8
Q

Nested Loop

A

Occur when a loop structure exist within another loop structure.

9
Q

Outer Loop

A

This loop contains another loop when nested.

10
Q

Inner Loop

A

This loop is contained by another loop when nested.

11
Q

Stub

A

A method without statements that is used as a placeholder.

12
Q

For Statement/For Loop

A

Can be used to code definite loops. It contains a loop control variable that it automatically initializes, evaluates, and alters.

13
Q

Step Value

A

A number you use to increase a loop control variable on each pass through a loop.

14
Q

Pretest Loop

A

Tests a loop control variable before each iteration, meaning that the loop body might never execute.

15
Q

Posttest Loop

A

Tests a loop control variable after each iteration, meaning that the loop body executes once.

16
Q

Accumulator

A

A variable that you use to gather or accumulate values.

17
Q

Summary Report

A

List only totals, without individual detail records.

18
Q

Defensive Programming

A

A technique with which you try to prepare for all possible error before they occur.

19
Q

Validate Data

A

Ensuring data items are meaningful and useful. Examples include ensuring that the values are correct data type or that they fall within an acceptable range.

20
Q

GIGO

A

(Garbage in, Garbage Out) means that if your input is incorrect, you output is worthless.

21
Q

Forcing

A

A data item means you override incorrect data by setting it to specific value.