Multiple choice

This type of error occurs when the code is not formatted or typed correctly

  1. Syntax

  2. Logic

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A syntax error occurs when the code violates the rules of the programming language, such as missing parentheses or incorrect keywords, preventing the program from running.