Ex. Flipping a logical operator (< or >)
Ex. Using square brackets instead of curly brackets
Syntax Error
Programmer mistake in the algorithm, causing unexpected behavior (program still runs!)
Ex. A program failing when the user enters unexpected data (ex. string instead of integer)
Run Time Error
Ex. A program failing when it tries to divide by 0
Program fails in the middle of running (program runs initially, but does not finish)
Logic Error
Overflow Error
Ex. Multiplying two numbers instead adding them
Occurs when a program encounters a value that is too big to calculate or display
Ex. Trying to store 256 in an 8-bit binary number.
Ex. Assigning a value to the wrong variable
Ex. Neglecting to put a string in quotation marks (ex. "cat")
Ex. Forgetting to declare a variable before using it
Ex. Missing semicolon (;)
Ex. a 4 bit adder adding binary numbers 0111 and 1101
Ex. Trying to fit 12 cans of soup in a box designed to fit 10
Ex. A program failing when it references a nonexistent file
A typo that will result in the program not compiling/running