Chapter 2 Flashcards

1
Q

What is iteration?

A

A procedure or set of statements or commands that are repeated.

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

Indefinite vs definitive iteration

A

Indefinite: the number of loops is not known ( while loop )

Definite: when the number of loops is non ( for loop )

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

What is a syntax error?

A

An error in the code caused by a spelling mistake, grammatical mistake or indentation error

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

What is a logical error?

A

Code works but not as intended

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

What is a dry run?

A

Script is run on paper and each stage is carefully analysed to see what values the various variables and outputs have.

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

What is a trace table?

A

A table that keeps track of the variables and outputs during a dry run.

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