Structured Programming Flashcards

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

What do structure diagrams show?

A

Smaller tasks of a larger program

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

How are structure diagrams made?

A

By decomposing the program into manageable modules
These modules are decomposed further into individual tasks

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

Simple Sub programs

A

To carry out an individual task
Then the rest of the program can be designed using these sub programs

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

Advantages of Structure Diagrams

A

Coding is easier - simple tasks
Each module can be worked on and written independently by lots of programmers
Easier to test
Can reuse sub programs for other programs

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

Code in structure programming is well-maintained. What is a well -maintained program?

A

Makes it easier for other programmers to understand what the program does.

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

What makes a program well - maintained?

A

Comments
Indentation
Variables, sub programs, parameters
Sub programs

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

Maintability: Comments

A

To explain the key features of the program

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

Maintainability: Indentation

A

To seperate different statements in a program

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

Maintainability: Variables, sub programs, parameters

A

Should be named well to help programmer understand what they do

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