Machine-translated by Google. Questions are authored in English.
Top

Discussion

The action of parsing the source program into the proper syntactic classes is known as

  • A.syntax analysis
  • B.lexical analysis
  • C.interpretation analysis
  • D.general syntax analysis

Answer: B

Correct answer: lexical analysis

Lexical analysis is the first phase: it scans the source character by character and groups the characters into tokens - identifiers, keywords, constants, operators - classifying each. Syntax analysis then takes that stream of tokens and checks it against the grammar of the language.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.