Créer une activité
Jouer Relier
1. Logic Error
2. Syntax Error
3. Run Time Error
4. Overflow Error

Logic Error

Programmer mistake in the algorithm, causing unexpected behavior (program still runs!)

Ex. Flipping a logical operator (< or >)

Syntax Error

Occurs when a program encounters a value that is too big to calculate or display

Ex. Missing semicolon (;)

Run Time Error

Ex. Trying to store 256 in an 8-bit binary number.

Program fails in the middle of running (program runs initially, but does not finish)

Ex. Using square brackets instead of curly brackets

Ex. Multiplying two numbers instead adding them

Ex. A program failing when the user enters unexpected data (ex. string instead of integer)

Ex. Assigning a value to the wrong variable

Ex. Neglecting to put a string in quotation marks (ex. "cat")

Overflow Error

Ex. a 4 bit adder adding binary numbers 0111 and 1101

A typo that will result in the program not compiling/running

Ex. A program failing when it references a nonexistent file

Ex. Trying to fit 12 cans of soup in a box designed to fit 10

Ex. Forgetting to declare a variable before using it

Ex. A program failing when it tries to divide by 0