Flashcards
Algorithms
Cards in this deck (6)
- 1What is a sequence in an algorithm?It means that the step-by-step instructions are executed one after the other
- 2What does selection in an algorithm do?Tests a condition
Executes a certain block of code depending on the result - 3Give examples of how selection can be representedIF something is true (or untrue) THEN execute this code
Can also use IF ... ELSE IF ... ELSE
CASE statements can also be used for selection - 4What is iteration?Repeating a block of code (loops)
- 5Give examples of how iteration can be representedFOR a fixed number of times
Conditional loops
WHILE loop - tests the condition before the loop is run
REPEAT loop - tests the condition after the loop is run, so it will run at least once - 6What can conditional loops become?Infinite loops
Information
- Description
- GCSE Computing (7 Programming) Flashcards on Algorithms, created by Anisha Rai on 20/04/2016.
- Created by
- Anisha Rai
- Views
- 24
- Tags
- Rating