Section 2 Chapter 8 - Structured Programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

The three basic programming structures

A
  • Sequence
  • Selection
  • Iteration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Sequence

A

One statement followed by another

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

Selection

A

Choosing which statements to execute - “branching”

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

Iteration

A

Repeating statements usually through the use of loops

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

A block

A

A section of code consisting of one or more statements. Can also be a subprogram.

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

Top-down design

A

The technique of breaking down a problem into subtasks sufficiently small enough to be written as a self contained module or subprogram

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

Hierarchy Chart

A

A chart that represents the structure of a program with each step being broken down into submodules

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

Limitations of a Hierarchy Chart

A

Does not show program structures such as iteration and selection

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

Structured Programming

A

A approach to programming that makes use of subroutines, block structures and loops in order to improve the clarity and maintainability of a program

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