Chapter 2 Flashcards
1
Q
What is iteration?
A
A procedure or set of statements or commands that are repeated.
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 )
3
Q
What is a syntax error?
A
An error in the code caused by a spelling mistake, grammatical mistake or indentation error
4
Q
What is a logical error?
A
Code works but not as intended
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.
6
Q
What is a trace table?
A
A table that keeps track of the variables and outputs during a dry run.