1: Chapter 4 Flashcards

1
Q

Cumulative algorithm

A

An operation in which an overall value is computed incrementally, often using a loop.

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

Roundoff error

A

A numerical error that occurs because floating-point numbers are stored as approximations rather than as exact values.

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

Text processing

A

Editing and formatting strings of text.

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

Precondition

A

A condition that must be true before a method executes in order to guarantee that the method can perform its task.

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

Postcondition

A

A condition that the method guarantees will be true after it finishes executing, as long as the preconditions were true before the method was called.

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

Cohesion

A

A desirable quality in which the responsibilities of a method or process are closely related to each other.

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

Coupling

A

An undesirable state in which two methods or processes rigidly depend on each other.

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

Chaining

A

An undesirable design in which a “chain” of several methods call each other without returning the overall flow of control to main.

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