Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Washing machine control program (top box) | AThe whole problem is split into three sub-problems on the next level down | |
| 2Quiz game -> Ask questions, Check answers, Update score | BThe whole problem is named in the top box of the structure diagram before it is split into sub-problems | |
| 3Keep splitting a box until it is one simple task, then stop | CThe box names are vague, so nobody can tell what each sub-problem does. Use clear names such as Fill drum, Wash clothes and Spin dry. | |
| 4Use a clear box name that says what the box does | DFill drum with water | |
| 5Washing machine -> Do things, Other stuff, Part 3 | EThe diagram is split too far. Add 1 to score is already a simple task, so splitting it further adds nothing useful. | |
| 6Quiz game -> Add 1 to score -> Press the + key -> Move finger to key | FUpdate score -> Add 1 to score (stop here) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
top-down design — Name the whole problem in the top box, then split it into sub-problems level by level until each box is one simple task. Use clear box names.PROCEDURE WashingMachine
CALL FillDrum
CALL SpinCALL AskQuestion
CALL CheckAnswer
PROCEDURE CheckAnswerPROCEDURE Spin
OUTPUT "Drum spinning"
ENDPROCEDUREPROCEDURE AddScore
score ← score + 10
ENDPROCEDUREPROCEDURE QuizGame
CALL AskQuestion
CALL AddScore