Join WhatsApp ChannelDaily MCQs & Exam Updates
Computer Science Hard NTS Uploaded: 13 Aug 2026

Which of the following best defines 'syntax error'?

  • A Hardware malfunction
  • B Violation of programming language rules
  • C Network failure
  • D Logical mistake in code
Correct Answer: Option B — Violation of programming language rules
Explanation:
A syntax error occurs when code violates the grammatical rules of a programming language, preventing it from being compiled or interpreted c...
Submitted by: PaperMCQs
Related MCQs