Podcast
Questions and Answers
What is the main responsibility of a lexical analyzer?
What is the main responsibility of a lexical analyzer?
- Converting input language tokens to an internal form (correct)
- Checking the syntax of the input language
- Holding information about the names of entities
- Generating abstract machine code
What is the primary function of a symbol table?
What is the primary function of a symbol table?
- Holding information about the names of entities used in the text being translated (correct)
- Generating abstract machine code
- Checking the semantic correctness of the input language text
- Converting input language tokens to an internal form
What does a syntax analyzer primarily check?
What does a syntax analyzer primarily check?
- Converting input language tokens to an internal form
- The syntax of the input language being translated (correct)
- Holding information about the names of entities used in the text being translated
- Generating abstract machine code
What is the role of a semantic analyzer?
What is the role of a semantic analyzer?