1
GATE CSE 2022
Numerical
+1
-0.33

Consider the augmented grammar with {+, *, (, ), id} as the set of terminals.

S' $$\to$$ S

S $$\to$$ S + R | R

R $$\to$$ R * P | P

P $$\to$$ (S) | id

If I0 is the set of two LR(0) items {[S' $$\to$$ S.], [S $$\to$$ S. + R]}, then goto(closure(I0), +) contains exactly _________ items.

2
GATE CSE 2020
Numerical
+1
-0.33
Consider the following grammar.

S $$\to$$ aSB| d
B $$\to$$ b

The number of reduction steps taken by a bottom-up parser while accepting the string aaadbbb is _______.
3
GATE CSE 2019
Numerical
+1
-0.33
Consider the grammar given below:

S → Aa

A → BD

B → b | ε

D → d | ε

Let a, b, d, and $be indexed as follows: Compute the FOLLOW set of the non-terminal B and write the index values for the symbols in the FOLLOW set in the descending order. (For example, if the FOLLOW set is {a, b, d,$}, then the answer should be 3210)
4
GATE CSE 2019
+1
-0.33
Which one of the following kinds of derivation is used by LR parsers?
A
Rightmost
B
Leftmost in reverse
C
Rightmost in reverse
D
Leftmost
GATE CSE Subjects
EXAM MAP
Medical
NEET