Question 1
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 3
Marks : +2 | -2
Pass Ratio : 100%
An LR-parser can detect a syntactic error as soon as __________
Explanation: Error is found when it the input string is scanned.
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%
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 7
Marks : +2 | -2
Pass Ratio : 100%
Assembler is a program that _________
Explanation: An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the computer’s processor can use to perform its basic operations.
Question 10
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.