asked 173k views
4 votes
A ____ error results when you use a syntactically correct statement but use the wrong one for the current context.

A) syntax
B) logical
C) semantic
D) programming

1 Answer

7 votes

Answer:

C) semantic

Step-by-step explanation:

What is a semantic error?

A semantic error is a mistake in programming where the code is written correctly but doesn’t do what it’s supposed to because of flawed logic or incorrect usage. This happens when the code’s intended meaning doesn’t match what it actually does.