Single Choice Easy

QWhat is the purpose of the lexical analysis phase in the compilation process?

ID: #20038 Compiler 114 views
Question Info
#20038Q ID
EasyDifficulty
CompilerTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Generating intermediate code
  • B Identifying tokens in the source code
  • C Checking semantic errors
  • D Optimizing the program
Correct Answer

Explanation

Lexical analysis is responsible for identifying and categorizing tokens in the source code, such as keywords, identifiers, and operators.

Share This Question

Challenge a friend or share with your study group.