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 | |
|---|---|---|
| 1Oval labelled Start | AOval labelled End | |
| 2Diamond: Is count = 3? | Bcount: 0 → 1 → 2 → 3 | |
| 3Write down each change to the counter so you can answer later diamonds correctly | CYou forgot to record the counter change, so later diamonds are answered with an old value. | |
| 4The result is found when your finger reaches the end oval | DA decision. Check the current value of count, then follow the Yes arrow or the No arrow. | |
| 5Count is 2. The diamond asks 'Is count = 5?' and you follow the Yes arrow. | EThis is where you put your finger first. Begin here and follow the arrow out of it. | |
| 6A loop adds 1 to count each time, but you skip writing the new value and keep using 0. | FThe answer to the diamond is wrong. 2 is not 5, so you must follow the No arrow. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
trace a flowchart — Start at the oval, follow each arrow with your finger, answer every diamond using the current values, write down counter changes, and stop at the end oval to find the result.START
count ← 0
IF count < 3 THENDiamond: is count less than 5?
IF count < 5 THENcount ← 3
count ← count + 1
Now count is 4count ← 0
REPEAT 3 TIMES
count ← count + 1count ← count + 1
SAY count
END