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 | |
|---|---|---|
| 1Structure diagram | AFOR Count ← 1 TO 5 OUTPUT Count NEXT Count | |
| 2Flowchart | BThe order is wrong. The structure diagram must be drawn first to find the parts, then an algorithm is written for each box. | |
| 3Pseudocode is a text-based method that reads close to real code, so it shows the steps of an algorithm in order | CShows the parts of a solution as boxes, split from the main problem into sub-problems. Draw it first. | |
| 4A structure diagram splits a program into sub-problems, so each box can then be given its own algorithm | DA structure diagram shows the parts of a solution, not the order of steps. A flowchart or pseudocode shows the steps in order. | |
| 5Use a structure diagram to show the exact order of each step inside a loop | EQuiz Program -> Ask Question | Mark Answer | Show Score | |
| 6Write the pseudocode for every box first, then draw the structure diagram last | FA picture of the steps of an algorithm in order, using shapes joined by arrows. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
structure diagram — Shows the parts of a solution as boxes. Flowcharts (pictures) and pseudocode (text) then show the steps of each box in order. Draw the structure diagram first.PROCEDURE ShowResult()
OUTPUT "Well done"
ENDPROCEDURECALL GetMarks()
CALL CalcTotal()
CALL ShowTotal()Total ← Mark1 + Mark2
Average ← Total / 2
OUTPUT AverageIF Mark >= 50 THEN
OUTPUT "Pass"
ENDIFFOR Count ← 1 TO 5
OUTPUT Count
NEXT Count