Computer Sciences > GATE 2021 SET-1 > LL(1) Parsing
Consider the following context-free grammar where the set of terminals is {a, b, c, d, f}.
S -> daT | Rf
T -> aS | baT | ε
R -> caTR | ε
The following is a partially-filled LL(1) parsing table.
Which one of the following choices represents the correct combination for the numbered cells in the parsing table (“blank” denotes that the corresponding cell is empty)?
A
S -> Rf, T -> ε, T -> ε, S -> Rf
B
S -> Rf, T -> ε, T -> ε, blank
C
S -> Rf, blank, T -> ε, blank
D
blank, S -> Rf, blank, blank

Correct : a

Similar Questions

Consider two grammars G1 and G2 with the production rules given below:G1: S→if E then S|if E then S else S | aE→bG2: S→if E then S|MM→if E t...
#1458 MCQ
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......