Time Left - 15:00 mins
GATE 2024 compiler design rank Booster Quiz 17
Attempt now to get your rank among 31 students!
Question 1
Recursive descent parser is a type of ?
Question 2
Which of the following is a top-down parser?
Question 3
Consider the grammar:
E → TE’
E’ → +TE’ | €
T → FT’
T’ → *FT’ | €
F → (E) | id
Follow(F) is?
Question 4
Consider the grammar G:
S -> aSb | Sc | d | ε
Which of the following terminal is not present in First(S)?
Question 5
Consider the following grammar with terminal alphabet Σ{a,(, ), +,*}and start symbol E.
The production rules of the grammar are:
E →aA
E →(E)
A →+E
A →*E
A →epsilon
Compute the FIRST(E) and FOLLOW(A).
The production rules of the grammar are:
E →aA
E →(E)
A →+E
A →*E
A →epsilon
Compute the FIRST(E) and FOLLOW(A).
Question 6
Consider the following statements about parsers:
S1 : Top-down parser can’t parse left recursive grammar.
S2 : Keywords of a language are recognized during parsing of the program.
Choose the suitable option about above statements.
S1 : Top-down parser can’t parse left recursive grammar.
S2 : Keywords of a language are recognized during parsing of the program.
Choose the suitable option about above statements.
Question 7
Consider the following grammar :
E → TE'
E' → / +TE'
T → FT'
T' → / *FT'
F → id / (E)
Find the number of common symbols in Follow(F) , Follow(T) and Follow(T') ___________.
- 31 attempts
- 0 upvotes
- 0 comments
Nov 28GATE & PSU CS