What three building blocks are used when designing algorithms?
Sequencing, programming, iteration
Sequencing, selection, iteration
Sequencing, selection, programming
What is sequencing?
The order in which steps are carried out in an algorithm
The order in which we think computationally
The process of repeating a number of steps in an algorithm
Why is sequencing important?
To ensure the algorithm is kept to a reasonable length
To ensure the algorithm functions as intended
To ensure the algorithm is efficient
What might happen if the sequence is wrong?
The algorithm may be overly long
The algorithm may be inefficient
The algorithm may produce unexpected results
Which of the following contains a correct sequence to make a cup of tea?
Add water to kettle, boil water, add hot water to cup
Add hot water to cup, add water to kettle, boil water
Boil water, add hot water to cup, add water to kettle
Which of the following contains the correct sequence to draw a square?
Draw a 1 cm line, draw a 1 cm line, turn left 90 degrees, draw a 1 cm line, turn left 90 degrees, draw a 1 cm line, turn left 90 degrees
Draw a 1 cm line, turn left 90 degrees, draw a 1 cm line, draw a 1 cm line, turn left 90 degrees, draw a 1 cm line, turn left 90 degrees
Draw a 1 cm line, turn left 90 degrees, draw a 1 cm line, turn left 90 degrees, draw a 1 cm line, turn left 90 degrees, draw a 1 cm line
Which of the following contains an INCORRECT sequence when getting dressed to go out?
Put on socks, put on shoes, put on coat
Put on coat, put on shoes, put on socks
Put on socks, put on coat, put on shoes
Which of the following contains the correct sequence for making jam on toast?
Put bread in toaster, spread jam on toast, remove toast when done, spread butter on toast
Put bread in toaster, remove toast when done, spread butter on toast, spread jam on toast
Spread butter on toast, spread jam on toast, put bread in toaster, remove toast when done
How is sequencing represented in a flowchart?
With sentences that look like a programming language
As a series of boxes that follow each other, linked by arrows
As a series of diamond shaped boxes that follow each other, linked by arrows
How is sequencing represented in pseudocode?
Each step of the algorithm is written on a line of its own, in sequence
Each step of the algorithm is explained in a diagram
All the steps of the algorithm is written on the same line