Erstellt von Anisha Rai
vor mehr als 8 Jahre
|
||
Frage | Antworten |
What is a sequence in an algorithm? | It means that the step-by-step instructions are executed one after the other |
What does selection in an algorithm do? | Tests a condition Executes a certain block of code depending on the result |
Give examples of how selection can be represented | IF something is true (or untrue) THEN execute this code Can also use IF ... ELSE IF ... ELSE CASE statements can also be used for selection |
What is iteration? | Repeating a block of code (loops) |
Give examples of how iteration can be represented | FOR 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 |
What can conditional loops become? | Infinite loops |
Möchten Sie mit GoConqr kostenlos Ihre eigenen Karteikarten erstellen? Mehr erfahren.