Chapter 3 Flashcards

1
Q

Snarled, unstructured program logic

A

Spaghetti code

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

Programs that do not follow the rules of structured logic.

A

Unstructured program

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

Program that do follow the rules of structured logic.

A

Structured programs

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

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

A

Structure

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

This contains a series of steps,executed in order. this can contain a number of tasks, but there is no option to branch off and skip any of the tasks.

A

Sequence Structure

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

Contains a question, and depending on the answer, takes one of the two courses of action before continuing with the next task.

A

Selection or Decision Sturcture

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

Designates the end of a pseudocode structure

A

End Structure Statement

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

Another name for selection/decision statement.

A

If-then-else

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

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

A

Dual-Alternative selections (Defenitive Ifs)

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

Take action on just one branch of the decision.

A

Single-Alternative selections (Single Ifs)

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

The branch of a decision in which no action is taken.

A

Null Case

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

Continues to repeat actions while a test condition remains true.

A

Loop Structure

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

The set of actions that occur within a loop.

A

Loop Body

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

Another name for a loop structure.

A

Repetition (Iteration)

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

A process continues while some conditions continues to be true.

A

While do (While Loop)

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

The act of attaching structures end to end.

A

Stacking Sturctures

17
Q

The act of placing a structure within another structure.

A

Nesting Structures

18
Q

A Group of statements that executes as a single unit.

A

Block

19
Q

The statement that reads the first input data record prior to starting a structured loop.

A

Priming Input (Priming Read)

20
Q

What do programmers promote by using structured programs?

A

Clarity, Professionalism, Efficiency, and Modularity.

20
Q

A Sequence, Selection, and Loop.

A

What are the types of structures in a program?

21
Q
  1. Programs only consist of three basic structures; a sequence, loop, and/or a selection. A structure may contain one, two, or all of these structures.
  2. Each structure has to have only one entrance and one exit point.

3 . Structures can only be stacked or connected to one another only at their entry or exit point.

  1. Any structure can be nested within another structure.
A

What are the rules to having a structured program?