6
QuizMultiple Choice

Use Data Structures — Unit test

Question 6 • Introduction to Information Technology - EL3701

A program runs from start to finish, producing unexpected results, though no error message is received. What most likely occurred?

Answer
A
a run-time error
B
a logic error
C
a syntax error
D
a message error

Explanation

A logic error occurs when a program runs without stopping but does not produce the intended results. A run-time error usually interrupts execution, and a syntax error prevents the program from running correctly in the first place. Therefore, the most likely cause is a logic error.

AI-written and checked against the verified answer.

Previous
Next