Question 3
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 4
Marks : +2 | -2
Pass Ratio : 100%
The construction of the canonical collection of the sets of LR (1) items are similar to the construction of the canonical collection of the sets of LR (0) items. Which is an exception?
Explanation: Closure and goto do work differently in case of LR (0) and LR (1).
Question 5
Marks : +2 | -2
Pass Ratio : 100%
Explanation: A permanent database that has entry for each terminal symbols such as arithmetic operators, keywords, punctuation characters such as ‘;’, ‘,’etc Fields: Name of the symbol.
Question 6
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.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
When ß is empty (A -> ß.,a), the reduction by A-> a is done by _________
Explanation: The next token is considered in this case it’s a.
Question 10
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.