Menu

Syntax and Logical Errors - Categories

Drag answers into the correct category. Once all of the answers have been categorised press submit to check your answers.

Syntax errors
Logic errors
Runtime errors
Ways to find errors

Answers
Insert print statements
ZeroDivisionError occurs at runtime
Dividing a number by zero
Divides when it should multiply
Trace table
Misspelled keyword
Input causes program to stop
Incorrect punctuation
Missing end quote
Program runs but output is wrong
Using a string where integer expected
Dry run
Uses multiplication instead of power
Program crashes during execution
Uses addition instead of subtraction
Missing opening bracket
Check variable values
Accessing out of range index
Returns wrong variable from function
Missing closing bracket
Missing colon
Compare against expected output
Incorrect formula gives wrong result
Follow algorithm step by step
Log in or sign-up to access the categorising activity



Don't have a login?

You can still revise this topic