A syntax error is:
A
An error in logic
B
An error in grammar
Correct answer
C
A run-time error
D
A hardware error
Correct answer
B. An error in grammar
12 views
⚔️
Challenge a friend on Computer Science FBISE Class 10
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
A syntax error violates the grammar rules of the language, such as a missing semicolon. Logical errors produce wrong results despite correct syntax. Run-time errors occur during execution.
Reference
Asked in: Matric,FBISE
Doubts & discussionNot sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ The keyword used to define a constant in C is: Next MCQ › Which of these is a relational operator?