15
QuizMultiple Choice

Use Data Structures — Unit test

Question 15 • Introduction to Information Technology - EL3701

A misplacement of punctuation or spacing in a command during programming that causes the program to stop running is most likely which type of error?

Answer
A
syntax
B
run-time
C
logic
D
compiler

Explanation

A syntax error happens when a command breaks the programming language’s rules, such as through misplaced punctuation or spacing. The program generally cannot be compiled or interpreted correctly until that mistake is fixed. A run-time error happens while a program is running, and a logic error produces an incorrect result; “compiler” is not an error type.

AI-written and checked against the verified answer.