Chapter 3 Flashcards

1
Q

Spaghetti code

A

snarled unstructured program logic.

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

Unstructured programs

A

are programs that do not follow the rules of structured logic.

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

Structured programs

A

are programs that do follow the rules of structured logic.A structure

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

structure

A

is a basic unit of programming logic; each structure is a sequence, selection, or loop.

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

sequence structure

A

contains series of steps executed in order. A sequence can contain any number of tasks, but there is no option to branch off, skipping any of the tasks.

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

selection structure or decision structure

A

contains a conditional test, and, depending on the result, takes one of two courses of action before continuing with the next task.

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

Boolean expression

A

is one that represents only one of two states, usually expressed as true or false.

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

end-structure statement

A

designates the end of a pseudocode structure.

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

if-then-else

A

is another name for a dual-alternative selection structure.

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

Dual-alternative ifs (or dual-alternative selections)

A

define one action to be taken when the tested condition is true and another action to be taken when it is false.

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

Single-alternative ifs (or single-alternative selections

A

take action on just one branch of the decision.

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

null case or null branch

A

is the branch of a decision in which no action is taken

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

null case or null branch

A

is the branch of a decision in which no action is taken

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

loop structure

A

continues to repeat actions while a test condition remains true.

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

loop body

A

is the set of actions that occur within a loop.

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

while loop

A

is a structure that continues to repeat a process while some condition remains true.

17
Q

Repetition and iteration

A

are alternate names for a loop structure.

18
Q

while…do loop

A

is an alternate name for a while loop.

19
Q

Stacking structures

A

is the act of attaching structures end to end.

20
Q

Nesting structures

A

is the act of placing a structure within another structure.

21
Q

block

A

is a group of statements that executes as a single unit.

22
Q

priming input or priming read

A

is the statement that reads the first input prior to starting a structured loop that uses the data.

23
Q

Goto-less programming

A

is a name to describe structured programming, because structured programmers do not use a “go to” statement.