Chapter 5 Flashcards

1
Q

Loop Control Variable

A

A variable that determines weather a loop will continue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Definite Loop

A

Which the number of repetitions is predetermined value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Counted or Counter-Contolled Loop

A

A loop whose repetitions are managed by a counter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Increment

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Decrement

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Counter

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Indefinite Loop

A

One for which you cannot predetermine the number of executions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Nested Loop

A

Occur when a loop structure exist within another loop structure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Outer Loop

A

This loop contains another loop when nested.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Inner Loop

A

This loop is contained by another loop when nested.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Stub

A

A method without statements that is used as a placeholder.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Step Value

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Pretest Loop

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Posttest Loop

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.