Structure Diagrams Flashcards

Card 1 of 8

All 8 cards in this deck

What is a structure diagram?

A visual chart showing how the parts of a system are broken down, interconnected and organised.

In a structure diagram, what does each box represent?

A separate part (subsection) of the system.

How is a structure diagram organised?

Hierarchically — the whole problem is the top box, with subsections on the levels below joined by lines to show their links.

Give one advantage of using a structure diagram.

It is a planning tool used before coding, so errors or missing parts are spotted early.

Give one drawback of using a structure diagram.

It becomes confusing if made overly detailed, and must be updated whenever the system changes.

True or false? A structure diagram shows the order in which the steps of an algorithm are carried out.

False. It shows how the problem breaks into subsections and how they link; a flowchart shows the order of steps.

Give two advantages of splitting a program into modules, as shown on a structure diagram.

Any two of: each module can be written separately (even by different programmers); each can be tested on its own; modules can be reused in other programs.

When building a structure diagram, when do you stop breaking a module down?

When each module carries out one simple task, small enough to be written as a single sub program.