Sequence
Sequencing is when the computer will run the code it receives, one line at a time from the top to the bottom of the requested program. It will start at line 1 then execute line 2 then line 3 and so on unit it reaches the last line of the program it's processing.
An example of Sequencing...
When you first load up a game, you are using sequencing because the program is having to run the all the way through to ensure the program loads correctly.
Selection
This is used when you may only want to run some lines of code sometimes when a condition is met as so the computer will have to ignore the other lines of code and 'jump' over them. This action can be achieved by using IF statements e.g. if a condition is met then lines 4,5 and 6 are executed otherwise the computer jumps to line 7 without even looking at line 4,5 and 6.
An example of Selection...
When a character for example gets to a certain part of a game for example Selection may be used to launch what is called a 'cut scene' to be played only when the player reaches that point in the game however. Another example is when a character reaches a stated amount of EXP that character will have the option to level up, this level up feature will only be called on when the player reaches that required amount of EXP (Condition met---> Action)
Iteration
Iteration is used when sometimes your wanting to execute the same line of code whether it be 2 times in a row to 1000's upon 1000's of times in a row. This is done by using a loop. These loops have three different types: For loops , while loop sand repeat while loops. This is handy as it enables you to not have to copy the same lines of code many times.
An example of Iteration...
Using an example of a game again, when a character is in sort of combat, a while loop will be continuously running to check whether the characters enemy is out of health or has reached a certain amount of health remaining. While loop are extremely efficient at preforming these soft of actions.