Iteration Flashcards
1
Q
What are the types of iteration?
A
Definite, indefinite and infinite
2
Q
What is definite iteration?
A
Number of iterations known before we start the loop
e.g. for, while, repeat
3
Q
What is indefinite loop?
A
When number of iteration is not know before loop starts
e.g. while and repeat until
4
Q
What are nested loops?
A
One loop run inside another loop
5
Q
What are infinite loop?
A
Endless loops
6
Q
What are the 2 types of error?
A
Syntax and logical
7
Q
What is syntax error and logical error?
A
Syntax is language mistakes e.g spelling
Logical is wrong answer or outcome. error in programme
8
Q
What is dry running?
A
Manually work through without use of computer
9
Q
What are trace tables?
A
To record results of dry run