Iteration Flashcards

1
Q

What are the types of iteration?

A

Definite, indefinite and infinite

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is definite iteration?

A

Number of iterations known before we start the loop

e.g. for, while, repeat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is indefinite loop?

A

When number of iteration is not know before loop starts

e.g. while and repeat until

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are nested loops?

A

One loop run inside another loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are infinite loop?

A

Endless loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 2 types of error?

A

Syntax and logical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is dry running?

A

Manually work through without use of computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are trace tables?

A

To record results of dry run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly