Designing and refining a program Flashcards

1
Q

How is a process represented in a flowchart

A

By a rectangle

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

How is an input or output represented in a flowchart

A

By a parallelogram

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

How is a decision represented in a flowchart

A

By a diamond

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

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

Examples of syntax errors

A
  • Misspelling a statement e.g. print
  • Missing a bracket
  • Using a variable before it has been declared
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

Causes of logic errors

A
  • Using the wrong logical operators
  • Incorrectly using brackets for calculations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why are trace tables used

A

For programers to determine where the logic error occured

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