What output will be generated by the compiler after lexical and syntax analyses, respectively?

What output will be generated by the compiler after lexical and syntax analyses, respectively?

  1. a) Tokens and a parse tree
  2. b) A parse tree and tokens
  3. c) A syntax tree and intermediate code
  4. d) Tokens and error messages

From the BCS Technical Cadre (CSE) October 2025 – 49th BCS Written (Special) (BPSC) exam, question 58 of 123.

More from this paper