Question 2
Marks : +2 | -2
Pass Ratio : 100%
Which of these is true about LR parsing?
Explanation: LR parsers are a type of bottom-up parsers that efficiently handle deterministic context-free languages in guaranteed linear time.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
What is the similarity between LR, LALR and SLR?
Explanation: The common grounds of these 3 parser is the algorithm but parsing table is different.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
When there is a reduce/reduce conflict?
Explanation: It occurs when If a state does not know whether it will make a reduction operation using the production rule i or j for a terminal.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Uniform symbol table _________
Explanation: Each pass scans the program, the first pass generates the symbol table and the second pass generates the machine code.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Advantage of incorporating the macro-processor into pass 1 is that _________
Explanation: A general-purpose macro processor or general purpose pre-processor is a macro designed primarily for string manipulation, macro definition.