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

What is the main purpose of a compiler's syntax analysis phase?

  • A Manage memory allocation
  • B Check code structure against language grammar rules
  • C Execute the program
  • D Store data
Correct Answer: Option B — Check code structure against language grammar rules
Explanation:
Syntax analysis, also called parsing, checks whether the source code's structure conforms to the grammatical rules of the programming langua...
Submitted by: PaperMCQs
Related MCQs