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 | |
|---|---|---|
| 1INPUT: user types their name | AREPEAT 5 TIMES: water the plant | |
| 2OUTPUT: show 'Bus leaves at 8:15' | BIF homework is done THEN play ELSE study | |
| 3After listing the steps, add a decision if the user's problem needs a choice | CThe steps are in the wrong order. The algorithm shows the answer before it collects the input it needs, so the fix is to ask for the number first. | |
| 4Add a repeat when the user's problem needs the same steps again and again | DThe algorithm was never tested with the user. The designer should follow the steps with the user and check they solve the problem, then fix any mistakes. | |
| 51. Show the answer 2. Ask the user for their number | EAn input the user gives to the algorithm, which the steps can then use | |
| 6Design the steps. Finish. (never tried with the user) | FAn output the user needs, shown to them when the algorithm finishes |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
design an algorithm — Start with the user's problem, list the steps the solution must do, then add any decisions and repeats. Think about what the user puts in and needs out, and test the steps with them.INPUT pet
OUTPUT "Time to feed " + petINPUT homework
OUTPUT "Time for a break!"INPUT minutes
IF minutes < 10 THEN
OUTPUT "Too short"REPEAT 3 TIMES
OUTPUT "Drink some water"IF age < 8 THEN OUTPUT "Easy level"
ELSE OUTPUT "Hard level"