GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Repetition/Iteration (Loops)

Molly Hills Computing A Level Englisch 9 Karten

Karten in diesem Stapel (9)

  1. 1What are the three types of Loop?While
    Until
    For
  2. 2What does a While Loop look like?Local i
    Put 1 into i
    Repeat While i < 10
    add 1 to i
    answer i
    End Repeat
  3. 3What does a Until Loop look like?Local i
    Put 1 into i
    Repeat Until i = 10
    answer i
    Put 1 into i
    End Repeat
  4. 4What is a benefit of a For Loop?Nearly impossible to create a infinite loop
    Automatic counter
    Useful for when we know how many times we want the loop to run
  5. 5What does a For Loop look like?Local i
    Repeat with i = 1 to 10
    answer i
    End Repeat
  6. 6What is different about a Advanced For Loop?Involves Steps
    e.g.
    Repeat with i = 10 to 100 step 10
  7. 7How do you create a For Loop which steps backwards?Repeat with i = 100 to 1 step -1
  8. 8Can you create Nested.. a) For Loops b) While Loops c) Until Loopsa) Yes
    b) Yes
    c) Yes
  9. 9Example of a While Loop using Logical OperatorsWhile i > 10
    //do something//

Informationen

Beschreibung
A Level Computing (F452) Karteikarten am Repetition/Iteration (Loops), erstellt von Molly Hills am 25/11/2014.
Erstellt von
Molly Hills
Aufrufe
13
Bewertung

Mehr zu Control Structures

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck