Syntax error - GCSE Computer Science Definition

Reviewed by: Robert Hampton

Published

A syntax error is a type of mistake in a computer program's code that happens when the rules of the programming language are not followed correctly. Think of it like writing a sentence that does not follow the rules of grammar, like "The cat run fastly." In a computer program, even a small syntax error, like a missing bracket or a misspelled word, can stop the program from working properly or running at all. Syntax errors are often spotted by the computer as soon as you try to run the program, and fixing them is usually the first step in making sure your code works correctly.

Examiner-written GCSE Computer Science revision resources that improve your grades 2x

  • Written by expert teachers and examiners
  • Aligned to exam specifications
  • Everything you need to know, and nothing you don’t
GCSE Computer Science revision resources

Share this article

Robert Hampton

Reviewer: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

The examiner written revision resources that improve your grades 2x.

Join now