Designing and refining a program Flashcards
1
Q
How is a process represented in a flowchart
A
By a rectangle
2
Q
How is an input or output represented in a flowchart
A
By a parallelogram
3
Q
How is a decision represented in a flowchart
A
By a diamond
4
Q
What is a syntax error
A
Occurs when the code written does not follow the rules of the programming language, therefore the code does not run
5
Q
Examples of syntax errors
A
- Misspelling a statement e.g. print
- Missing a bracket
- Using a variable before it has been declared
6
Q
What is a logic error
A
An error in how the program works, the program runs but does not give the expected out come
7
Q
Causes of logic errors
A
- Using the wrong logical operators
- Incorrectly using brackets for calculations
8
Q
Why are trace tables used
A
For programers to determine where the logic error occured