SWIFT CHAP 07 Flashcards
Looping Control Flow?
sequenced of looped statements wich are to be excuted until specfied condition is met
name the two types of control flow?
Looping Control
Condtional FLOW Control
for-in statement used for?
to iterate over s sequence of items contained in a number range or collection
CONDITIONAL FLOW CONTROL
WHETHER OR NOT CODE GETS EXCUTED
REPEAT WHILE LOOP
Evaluate expression while repeating code in the loop body.
if the condition is false on the first try for of a repeat while loop what happens to code?
does not get executed
breaking a loop ( {break} ) mean?
breaking out of code before the expression is met.
what does the {break} statement do when it exits a loop?
proceeds to the next line of code.
what does the if statement evaluate?
boolean true or false values.
{continue} statement?
causes all remaining statements in a loop body 2 b skipped and returned to top of loop.
after the {contiune} statement is executed what happens to the loop execution?
execution gets returned to the top of the loop.
if.. else statement?
like the else-if statement except that specify more than two conditions.
else.. if?
allows you to specify two expressions with true or false.
if the boolean expression in an (if) statement evaluates to true or false what happens?
if TRUE then code is executed.
If false code is skipped.
while loop … statement?
repeats a set of task, whilst a condition is met?