Previous Module
Next Module

COMPUTER SYSTEMS: Encoding and compression

COMPUTER SYSTEMS: Network topologies

COMPUTER SYSTEMS: Wired and wireless networks, protocols, and layers

COMPUTER SYSTEMS: Threats to computer systems and networks

COMPUTER SYSTEMS: Operating systems and utility software

COMPUTER SYSTEMS: Impact of technology on society

ALGORITHMS AND PROGRAMMING: Types of data

ALGORITHMS AND PROGRAMMING: Producing robust programs

ALGORITHMS AND PROGRAMMING: Designing, creating, and refining algorithms

ALGORITHMS AND PROGRAMMING: Programming languages

  • Syntax errors:
    • Break the rules of the language, meaning the program won’t run (e.g. misspelled keywords (‘pritn’ instead of ‘print’), missing punctuation, or incorrect indentation).
print(“Hello     # Syntax error
  • Logic errors:
    • Occur when the program runs but gives wrong results, caused by incorrect algorithm structure or flawed reasoning in the code (e.g. using >= instead of >, or an incorrect loop range).
    • These can be harder to find because there are no error messages

age = 10

if age > 18:

print(“Child”)     # Logic error

Unlock Types of errors

Subscribe to SnapRevise+ to get immediate access to the rest of this resource.

Premium accounts get immediate access to this resource.

Previous Module
Next Module