Question
Which of the following tasks is NOT performed during
lexical analysis?Solution
Lexical analysis converts source code into tokens; parse tree construction happens in the syntax analysis phase.
Which LR parser is often preferred in practice because it offers a good balance between power and table size, resolving most conflicts that SLR(1) cannot?
Which of the following is a correct way to declare and initialize a pointer to an integer in C?
Which optimization is performed after intermediate code generation?
Which of these is used for resolving operator precedence in parsing?
The symbol table in a compiler is used to store:
What is the purpose of Normalization in database design? Â Â Â Â Â
If an expression `x = a + b` is computed, and later in the same basic block, `y = a + b` is computed, a compiler can apply which optimization?
Which of the following is NOT a common form of 3-address code?
A "lexeme" refers to:
What is a primary advantage of generating intermediate code during compilation?