Iteration Flashcards
What does iteration mean
Doing something repeatedly, in your program, you can use a loop statement to repeat a set of instructions
What are the 2 type of loops
Condition-Controlled Iteration
Count-Controlled Iteration
What is condition-controlled iteration
When a set of instructions is repeated whether a condition is met
What is count-controlled iteration
When a set of instructions is repeated a specific number of times
What is a for loop
For loops are count-controlled meaning you choose how many times the instructions should be repeated
What types of sequence can for loops be used for
Letters in a word
Items in a list
Numbers in a range
What is pseudocode
Pseudocode is informal steps for an algorithm using structured English. Pseudocode has no specific syntax and should just be human readable
What is the purpose of Pseudocode
To design programs like u can do flowcharts.
It is intended for humans to interpret and not computers
What is a While loop
The instructions repeat itself until a condition is met