Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Syntax Errors

Syntax errors are some of the easier bugs to fix in a broken program.

Syntax errors

Syntax errors

  • A syntax error is a mistake in the way the code is written.
  • It is similar to a spelling or grammar mistake in English.
  • Syntax errors prevent programs from running as a translator needs code to be syntactically correct.
Example of an error

Example of an error

  • prnt("Hello, world!");
    • Incorrect subroutine identifier.
  • newbalance = newBalance * 1.05;
    • Wrong capitalisation in variable identifier.
  • myBoolean = True NOT False;
    • NOT does not take two operands.
Jump to other topics
1

Computational Thinking & Algorithms

2

Programming

3

Hardware & Software

4

Data

5

The Internet

6

Online Safety & Security

Practice questions on Syntax Errors

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
  3. 3
Answer all questions on Syntax Errors

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium