# Chapter 3 Flashcards Preview

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

Flashcards in Chapter 3 Deck (22)
1
Q

Snarled, unstructured program logic

A

Spaghetti code

2
Q

Programs that do not follow the rules of structured logic.

A

Unstructured program

3
Q

Program that do follow the rules of structured logic.

A

Structured programs

4
Q

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

A

Structure

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

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

7
Q

Designates the end of a pseudocode structure

A

End Structure Statement

8
Q

Another name for selection/decision statement.

A

If-then-else

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)

10
Q

Take action on just one branch of the decision.

A

Single-Alternative selections (Single Ifs)

11
Q

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

A

Null Case

12
Q

Continues to repeat actions while a test condition remains true.

A

Loop Structure

13
Q

The set of actions that occur within a loop.

A

Loop Body

14
Q

Another name for a loop structure.

A

Repetition (Iteration)

15
Q

A process continues while some conditions continues to be true.

A

While do (While Loop)

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

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?