Completing and reading a structure diagram

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Completing and reading a structure diagram

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A structure diagram has the top box 'Run a school canteen order system' with sub-boxes 'Take orders' and 'Print receipts', and one box is missing. Which box best fills the gap?
A Draw a flowchart
B Calculate total cost
2. Which way do you read a structure diagram to complete it?
A Top down: start at the parent box, then work out its sub-boxes
B Bottom up: start with the smallest boxes and guess the parent
3. The parent box is 'Check a password'. Its sub-boxes are 'Check length' and 'Check for a digit'. Which box would fill a third gap?
A Play background music
B Check for a capital letter
4. True or false: the sub-boxes under a parent box should together make up the whole of the parent box.
A True
B False
5. The parent box is 'Make a quiz game'. Sub-boxes are 'Ask questions', 'Check answers' and 'Design a school logo'. Which box does not belong?
A Design a school logo
B Check answers

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Quiz game: Ask question, ___, Show score ALogin: Enter username, Enter password, Check details
2Run school canteen > Take orders > Write order BA sub-box is missing. Enter username and Check details are needed so the sub-boxes make up the whole parent box.
3The sub-boxes together must make up the parent box CA missing box: fill the gap with a sub-problem the parent needs, such as Check answer
4Fill a missing box with a sub-problem the parent box needs DCalculate bill: Add prices, ___ = Add tax, Print receipt
5Weather app: Show forecast, Play music, Get data EPlay music is a box that does not belong. It is not needed to solve the parent problem, so remove it.
6Login: Enter password FReading from the top down: start with the whole problem, then follow each level to smaller sub-problems

Definitions

complete a structure diagram

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
Withdraw cash Check PIN | Enter amount | _________
2.
______________ Borrow book | Return book | Pay fine
3.
Find average mark Get marks | ____________ | Divide by count
4.
Make toast Get bread | Toast bread | Wash car Box to remove: ________
5.
Level 1: Online shop Level _: Browse | Pay | Deliver Level 3: Enter card details (under Pay)

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A Make a school report
B Buy new shoes
C Calculate averages
D Print report
Question 2
A Online shopping
B Check PIN
C Choose amount
D Give cash
Question 3
A Weather station
B Record data
C Eat lunch
D Read rain gauge
Question 4
A Login system
B Enter details
C Check details
D Play music
Question 5
A Mobile game
B Start game
C Play level
D Make the whole game

Answer Key

Completing and reading a structure diagram
Section A: Quick Questions
Q1
B — Calculate total cost
Q2
A — Top down: start at the parent box, then work out its sub-boxes
Q3
B — Check for a capital letter
Q4
A — True
Q5
A — Design a school logo
Section B: Match the Pairs
Q1
Quiz game: Ask question, ___, Show score → A missing box: fill the gap with a sub-problem the parent needs, such as Check answer
Q2
Run school canteen > Take orders > Write order → Reading from the top down: start with the whole problem, then follow each level to smaller sub-problems
Q3
The sub-boxes together must make up the parent box → Login: Enter username, Enter password, Check details
Q4
Fill a missing box with a sub-problem the parent box needs → Calculate bill: Add prices, ___ = Add tax, Print receipt
Q5
Weather app: Show forecast, Play music, Get data → Play music is a box that does not belong. It is not needed to solve the parent problem, so remove it.
Q6
Login: Enter password → A sub-box is missing. Enter username and Check details are needed so the sub-boxes make up the whole parent box.
Section C: Definitions
Q1
complete a structure diagram — Read the given boxes top down, then fill each gap with the sub-problem its parent box needs, so the sub-boxes together make up the parent. Ignore boxes that do not belong.
Section D: Fill in the Blanks
Q1
Withdraw cash Check PIN | Enter amount | Give cash
Q2
Library system Borrow book | Return book | Pay fine
Q3
Find average mark Get marks | Add up marks | Divide by count
Q4
Make toast Get bread | Toast bread | Wash car Box to remove: Wash car
Q5
Level 1: Online shop Level 2: Browse | Pay | Deliver Level 3: Enter card details (under Pay)
Section E: Spot the Error
Q1
B — 'Buy new shoes' does not belong. Every sub-box must be part of solving the parent box. It should be a sub-problem such as 'Collect marks'.
Q2
A — Reading top down, the parent box must be the problem that the sub-boxes together make up. Check PIN, Choose amount and Give cash make up 'ATM withdrawal', not 'Online shopping'.
Q3
C — 'Eat lunch' does not belong under 'Record data'. The missing box must be a sub-problem the parent needs, such as 'Read thermometer', so that the sub-boxes together make up 'Record data'.
Q4
D — 'Play music' does not belong in a login system. The missing box should be a sub-problem that the parent needs, such as 'Allow access'.
Q5
D — 'Make the whole game' just repeats the parent box. A sub-box must be a smaller part of the problem, such as 'Show high score'.