Year 7TechnologySupport
An algorithm is a precise set of steps for doing a task. Algorithms are built from three things: sequence (steps in order), selection (choosing with if, then, else) and repetition (loops). Answer each question, and write any algorithms as numbered steps.
AWhat is an algorithm?
- 1.
What is an algorithm?
1 mark- A precise set of steps that solves a problem or completes a task
- A program that can only run on a computer
- A list of the parts inside a computer
- A secret code word, like a password
- 2.
Match each building block to what it means.
3 marks- sequence
- selection
- repetition (a loop)
- Achoose what to do by asking a question, such as "if it is raining, take a raincoat"
- Bdo the same steps again, a set number of times or until something happens
- Csteps happen one after another, in order
- 3.
Put these steps for making toast in the right order. Write the letters. A: Put the bread in the toaster. B: Take the toast out. C: Push the lever down. D: Spread butter on the toast. E: Wait until the toast pops up.
2 marks - 4.
In the instruction "If the bell rings, line up at the door", the part "If the bell rings" is an example of selection.
1 mark- True
- False
BFollow and write algorithms
- 5.
A robot follows this algorithm: "Repeat 4 times: walk 5 steps, then turn right." The robot walks steps altogether and makes right turns.
2 marks - 6.
Follow the flowchart. Today it is not raining. What do you take to school?
1 mark- A sunhat
- A raincoat
- A raincoat and a sunhat
- Nothing
- 7.
At a pedestrian crossing with lights, people wait for the green figure before they cross. Write one instruction that uses selection. Sentence starter: "If ____, then ____, else ____."
2 marks - 8.
Draw a flowchart for washing your hands. Use these steps: wet your hands, add soap, rub for 20 seconds, rinse, dry your hands. Start with a Start box, finish with an End box, and join every box with arrows.
3 marksDraw or label here