Flowcharts and Algorithms Flashcards
Rectangle with rounded corners
Start/ end. Your flowcharts should include both.
Arrow
Direction of flow
Rectangle
Process/ instruction being carried out
Diamond
Decision. Note that the question must result in yes/ no (true/ false) answers.
Parallelogram which have sides with positive gradient
Input/ output
What is sequence?
order of steps in an algorithm
Why is sequencing so important?
Otherwise the algorithm will not work correctly
What is iteration?
carrying out a set of instructions repeatedly
Other names for iteration?
looping and repetition
For loop vs While loop
Repeated a set number of times vs Until the condition is met
Give an example of iteration
Take a sip of the soup until the bowl is clear.
What is selection?
Make decisions so computers can do different things depending on what input they receive.
Give an example of selection
Turn on the light if the room is too dark.
What is a variable?
Named container for a piece of data
Variable declaration vs assignment
Build the container and stick a label on it vs placing something in it