Different errors in Python Flashcards

1
Q

What is a syntax error?

A

Relates to the structure of the code and the way it has been written.

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

Give an example of a syntax error

A

print(9 (lacks closing bracket)

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

what is a runtime error?

A

An error that does not happen until the program has started.

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

What is a semantic error?

A

An error where the program will run, but the outcome will be different to what was expected.

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